USB: iowarrior.c: remove err() usage
authorGreg Kroah-Hartman <[email protected]>
Fri, 20 Apr 2012 23:53:45 +0000 (16:53 -0700)
committerGreg Kroah-Hartman <[email protected]>
Fri, 20 Apr 2012 23:53:45 +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: Rusty Russell <[email protected]>
CC: Kuninori Morimoto <[email protected]>
CC: Mauro Carvalho Chehab <[email protected]>
CC: Sarah Sharp <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/misc/iowarrior.c

index 4fd0dc835ae566e1a115e363c23e5e3ccba5ef0e..db46143c67a6db81569af53c0263eb751ba08720 100644 (file)
@@ -610,8 +610,8 @@ static int iowarrior_open(struct inode *inode, struct file *file)
        interface = usb_find_interface(&iowarrior_driver, subminor);
        if (!interface) {
                mutex_unlock(&iowarrior_mutex);
-               err("%s - error, can't find device for minor %d", __func__,
-                   subminor);
+               printk(KERN_ERR "%s - error, can't find device for minor %d\n",
+                      __func__, subminor);
                return -ENODEV;
        }