File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -482,8 +482,8 @@ static int __init apbuart_console_setup(struct console *co, char *options)
482
482
int parity = 'n' ;
483
483
int flow = 'n' ;
484
484
485
- pr_debug ("apbuart_console_setup co=%p, co->index=%i, options=%s\n" ,
486
- co , co -> index , options );
485
+ pr_debug ("%s() co=%p, co->index=%i, options=%s\n" ,
486
+ __func__ , co , co -> index , options );
487
487
488
488
/*
489
489
* Check whether an invalid uart number has been specified, and
@@ -650,21 +650,20 @@ static int __init grlib_apbuart_init(void)
650
650
if (ret )
651
651
return ret ;
652
652
653
- printk ( KERN_INFO "Serial: GRLIB APBUART driver\n" );
653
+ pr_info ( "Serial: GRLIB APBUART driver\n" );
654
654
655
655
ret = uart_register_driver (& grlib_apbuart_driver );
656
656
657
657
if (ret ) {
658
- printk ( KERN_ERR "%s: uart_register_driver failed (%i)\n" ,
659
- __FILE__ , ret );
658
+ pr_err ( "%s: uart_register_driver failed (%i)\n" ,
659
+ __func__ , ret );
660
660
return ret ;
661
661
}
662
662
663
663
ret = platform_driver_register (& grlib_apbuart_of_driver );
664
664
if (ret ) {
665
- printk (KERN_ERR
666
- "%s: platform_driver_register failed (%i)\n" ,
667
- __FILE__ , ret );
665
+ pr_err ("%s: platform_driver_register failed (%i)\n" ,
666
+ __func__ , ret );
668
667
uart_unregister_driver (& grlib_apbuart_driver );
669
668
return ret ;
670
669
}
You can’t perform that action at this time.
0 commit comments