diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-01 20:56:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-01 20:56:45 -0400 |
commit | 6b37dbba5d5f4e167eb5ca57e43c1bd49a696831 (patch) | |
tree | e8782da470ae2cb068bbca9fc674cf8fe99dbe70 | |
parent | 3b449fe5d5585a43f26bda4c3d86b7677d4c80db (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>
-rw-r--r-- | drivers/input/misc/powermate.c | 2 |
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) | |||
110 | exit: | 110 | exit: |
111 | retval = usb_submit_urb (urb, GFP_ATOMIC); | 111 | retval = usb_submit_urb (urb, GFP_ATOMIC); |
112 | if (retval) | 112 | if (retval) |
113 | dev_err(&pm->udev->dev, | 113 | dev_err(&pm->input->dev, |
114 | "%s - usb_submit_urb failed with result: %d\n", | 114 | "%s - usb_submit_urb failed with result: %d\n", |
115 | __func__, retval); | 115 | __func__, retval); |
116 | } | 116 | } |