summaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/aiptek.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-02 02:56:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-02 02:56:56 +0200
commit383c52f3388b5ddb2fbf1ec073081bc9c4bdfeff (patch)
tree67af95bda0052a7910657ffc5458f693486fe504 /drivers/input/tablet/aiptek.c
parentUSB: input: acecad.c: fix up dev_err() usage (diff)
downloadlinux-383c52f3388b5ddb2fbf1ec073081bc9c4bdfeff.tar.xz
linux-383c52f3388b5ddb2fbf1ec073081bc9c4bdfeff.zip
USB: input: aiptek.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> CC: Jesper Juhl <jj@chaosbits.net> CC: JJ Ding <dgdunix@gmail.com> CC: Edwin van Vliet <edwin@cheatah.nl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/input/tablet/aiptek.c')
-rw-r--r--drivers/input/tablet/aiptek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/tablet/aiptek.c b/drivers/input/tablet/aiptek.c
index b8d43eb3c8f1..dc16bfd24738 100644
--- a/drivers/input/tablet/aiptek.c
+++ b/drivers/input/tablet/aiptek.c
@@ -811,7 +811,7 @@ static void aiptek_irq(struct urb *urb)
exit:
retval = usb_submit_urb(urb, GFP_ATOMIC);
if (retval != 0) {
- dev_err(&aiptek->usbdev->dev,
+ dev_err(&inputdev->dev,
"%s - usb_submit_urb failed with result %d\n",
__func__, retval);
}