USB: driver.c: remove err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Apr 2012 23:53:29 +0000 (16:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Apr 2012 23:53:29 +0000 (16:53 -0700)
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/driver.c

index e8023afd36562d3d75db132fa73eba4d37110282..2e602e192b07fea8d20092053f0568f44cf86efd 100644 (file)
@@ -1307,7 +1307,8 @@ static int __init line6_init(void)
        retval = usb_register(&line6_driver);
 
        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;
        }
 
@@ -1315,7 +1316,7 @@ static int __init line6_init(void)
                                        GFP_KERNEL);
 
        if (line6_request_version == NULL) {
-               err("Out of memory");
+               printk(KERN_ERR KBUILD_MODNAME ":Out of memory\n");
                return -ENOMEM;
        }