summaryrefslogtreecommitdiff
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)
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 71ec621fbefa..3091b82b1f97 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);
}