USB: kbtab.c: remove err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 21:48:41 +0000 (14:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 21:48:41 +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/kbtab.c

index 85a5b40333ac3a347e5d901ec9ac413306310bcb..1eb6341f81c597719f7b84e960c03e228e9b778d 100644 (file)
@@ -80,8 +80,9 @@ static void kbtab_irq(struct urb *urb)
  exit:
        retval = usb_submit_urb(urb, GFP_ATOMIC);
        if (retval)
-               err("%s - usb_submit_urb failed with result %d",
-                    __func__, retval);
+               dev_err(&kbtab->usbdev->dev,
+                       "%s - usb_submit_urb failed with result %d\n",
+                       __func__, retval);
 }
 
 static struct usb_device_id kbtab_ids[] = {