Commit 2b8dec32 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: driver.c: remove err() usage

err() was a very old USB-specific macro that I thought had
gone away.  This patch removes it from being used in the
driver and uses dev_err() instead.

CC: Markus Grabner <grabner@icg.tugraz.at>
CC: Stefan Hajnoczi <stefanha@gmail.com>
CC: Julia Lawall <julia@diku.dk>
CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c2705c0d
...@@ -1307,7 +1307,8 @@ static int __init line6_init(void) ...@@ -1307,7 +1307,8 @@ static int __init line6_init(void)
retval = usb_register(&line6_driver); retval = usb_register(&line6_driver);
if (retval) { if (retval) {
err("usb_register failed. Error number %d", retval); printk(KERN_ERR KBUILD_MODNAME
": usb_register failed. Error number %d\n", retval);
return retval; return retval;
} }
...@@ -1315,7 +1316,7 @@ static int __init line6_init(void) ...@@ -1315,7 +1316,7 @@ static int __init line6_init(void)
GFP_KERNEL); GFP_KERNEL);
if (line6_request_version == NULL) { if (line6_request_version == NULL) {
err("Out of memory"); printk(KERN_ERR KBUILD_MODNAME ":Out of memory\n");
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment