summaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/gtco.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-01 20:57:00 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-01 20:57:00 -0400
commit88d5ab3a1817bcfe192ae79ef85ef3fb3e8c6669 (patch)
tree29a4562b749e2ef7912779e724e89b3ea2c4e5a7 /drivers/input/tablet/gtco.c
parent383c52f3388b5ddb2fbf1ec073081bc9c4bdfeff (diff)
USB: input: gtco.c: fix up dev_err() usage
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>
Diffstat (limited to 'drivers/input/tablet/gtco.c')
-rw-r--r--drivers/input/tablet/gtco.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c
index fed555bf9ff..937215373e9 100644
--- a/drivers/input/tablet/gtco.c
+++ b/drivers/input/tablet/gtco.c
@@ -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);
}