USB: input: gtco.c: fix up dev_err() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 00:57:00 +0000 (20:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 May 2012 00:57:00 +0000 (20:57 -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/gtco.c

index fed555bf9ff77390f9843cc4ddeee906281e73f2..937215373e95d1d59bd2446b04b6c9b1f5e299b9 100644 (file)
@@ -806,7 +806,7 @@ static void gtco_urb_callback(struct urb *urbinfo)
  resubmit:
        rc = usb_submit_urb(urbinfo, GFP_ATOMIC);
        if (rc != 0)
-               dev_err(&device->usbdev->dev,
+               dev_err(&inputdev->dev,
                        "usb_submit_urb failed rc=0x%x\n", rc);
 }