summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-01 20:56:45 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-01 20:56:45 -0400
commit6b37dbba5d5f4e167eb5ca57e43c1bd49a696831 (patch)
treee8782da470ae2cb068bbca9fc674cf8fe99dbe70 /drivers/input/misc
parent3b449fe5d5585a43f26bda4c3d86b7677d4c80db (diff)
downloadop-kernel-dev-6b37dbba5d5f4e167eb5ca57e43c1bd49a696831.zip
op-kernel-dev-6b37dbba5d5f4e167eb5ca57e43c1bd49a696831.tar.gz
USB: input: powermate.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/misc')
-rw-r--r--drivers/input/misc/powermate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/powermate.c b/drivers/input/misc/powermate.c
index 71ec621..3091b82 100644
--- a/drivers/input/misc/powermate.c
+++ b/drivers/input/misc/powermate.c
@@ -110,7 +110,7 @@ static void powermate_irq(struct urb *urb)
exit:
retval = usb_submit_urb (urb, GFP_ATOMIC);
if (retval)
- dev_err(&pm->udev->dev,
+ dev_err(&pm->input->dev,
"%s - usb_submit_urb failed with result: %d\n",
__func__, retval);
}
OpenPOWER on IntegriCloud