USB: input: acecad.c: fix up dev_err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 00:56:51 +0000 (20:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 00:56:51 +0000 (20:56 -0400)
We should always reference the input device for dev_err(), not the USB
device.  Fix up the places where I got this wrong.

Reported-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/tablet/acecad.c

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