diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-01 20:56:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-01 20:56:56 -0400 |
commit | 383c52f3388b5ddb2fbf1ec073081bc9c4bdfeff (patch) | |
tree | 67af95bda0052a7910657ffc5458f693486fe504 /drivers/input | |
parent | b30662c4721ea77ca5930dd60f3294cd1413067f (diff) |
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')
-rw-r--r-- | drivers/input/tablet/aiptek.c | 2 |
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) | |||
811 | exit: | 811 | exit: |
812 | retval = usb_submit_urb(urb, GFP_ATOMIC); | 812 | retval = usb_submit_urb(urb, GFP_ATOMIC); |
813 | if (retval != 0) { | 813 | if (retval != 0) { |
814 | dev_err(&aiptek->usbdev->dev, | 814 | dev_err(&inputdev->dev, |
815 | "%s - usb_submit_urb failed with result %d\n", | 815 | "%s - usb_submit_urb failed with result %d\n", |
816 | __func__, retval); | 816 | __func__, retval); |
817 | } | 817 | } |