USB: irda-usb.c: remove err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 21:48:49 +0000 (14:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 21:48:49 +0000 (14:48 -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: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/irda/irda-usb.c

index 72f687b40d66739c73a62f56a8c1c81bbe8ab03b..f9a86bdb12fa71a687859933b8518bd60d714953 100644 (file)
@@ -1671,7 +1671,7 @@ static int irda_usb_probe(struct usb_interface *intf,
 
        /* Is this really necessary? (no, except maybe for broken devices) */
        if (usb_reset_configuration (dev) < 0) {
-               err("reset_configuration failed");
+               dev_err(&intf->dev, "reset_configuration failed\n");
                ret = -EIO;
                goto err_out_3;
        }