USB: usbmouse.c: remove err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 21:48:20 +0000 (14:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 21:48:20 +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: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/usbhid/usbmouse.c

index 0f6be45d43d5b8bb4dcc6d01fff61327f4f4f018..bf16d72dc3700f0b5feec7d6c60bd6942b4759b6 100644 (file)
@@ -92,9 +92,10 @@ static void usb_mouse_irq(struct urb *urb)
 resubmit:
        status = usb_submit_urb (urb, GFP_ATOMIC);
        if (status)
-               err ("can't resubmit intr, %s-%s/input0, status %d",
-                               mouse->usbdev->bus->bus_name,
-                               mouse->usbdev->devpath, status);
+               dev_err(&mouse->usbdev->dev,
+                       "can't resubmit intr, %s-%s/input0, status %d\n",
+                       mouse->usbdev->bus->bus_name,
+                       mouse->usbdev->devpath, status);
 }
 
 static int usb_mouse_open(struct input_dev *dev)