staging: bcm: use pr_info and pr_err rather than printk
Convert printk(KERN_INFO to pr_info( and printk(KERN_ERR to pr_err(. Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Acked-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d7b990a035
commit
c2e114db5a
1 changed files with 4 additions and 4 deletions
|
@ -671,18 +671,18 @@ static __init int bcm_init(void)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
printk(KERN_INFO "%s: %s, %s\n", DRV_NAME, DRV_DESCRIPTION, DRV_VERSION);
|
pr_info("%s: %s, %s\n", DRV_NAME, DRV_DESCRIPTION, DRV_VERSION);
|
||||||
printk(KERN_INFO "%s\n", DRV_COPYRIGHT);
|
pr_info("%s\n", DRV_COPYRIGHT);
|
||||||
|
|
||||||
bcm_class = class_create(THIS_MODULE, DRV_NAME);
|
bcm_class = class_create(THIS_MODULE, DRV_NAME);
|
||||||
if (IS_ERR(bcm_class)) {
|
if (IS_ERR(bcm_class)) {
|
||||||
printk(KERN_ERR DRV_NAME ": could not create class\n");
|
pr_err(DRV_NAME ": could not create class\n");
|
||||||
return PTR_ERR(bcm_class);
|
return PTR_ERR(bcm_class);
|
||||||
}
|
}
|
||||||
|
|
||||||
retval = usb_register(&usbbcm_driver);
|
retval = usb_register(&usbbcm_driver);
|
||||||
if (retval < 0) {
|
if (retval < 0) {
|
||||||
printk(KERN_ERR DRV_NAME ": could not register usb driver\n");
|
pr_err(DRV_NAME ": could not register usb driver\n");
|
||||||
class_destroy(bcm_class);
|
class_destroy(bcm_class);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue