USB: acecad.c: remove err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 21:48:34 +0000 (14:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 21:48:34 +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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/tablet/acecad.c

index f8b0b1df91382db9cb161d80ae4e2e7047e9c02d..da6c34106190ed913b33e36312908f992364139f 100644 (file)
@@ -105,8 +105,10 @@ static void usb_acecad_irq(struct urb *urb)
 resubmit:
        status = usb_submit_urb(urb, GFP_ATOMIC);
        if (status)
-               err("can't resubmit intr, %s-%s/input0, status %d",
-                       acecad->usbdev->bus->bus_name, acecad->usbdev->devpath, status);
+               dev_err(&acecad->usbdev->dev,
+                       "can't resubmit intr, %s-%s/input0, status %d\n",
+                       acecad->usbdev->bus->bus_name,
+                       acecad->usbdev->devpath, status);
 }
 
 static int usb_acecad_open(struct input_dev *dev)