dect
/
linux-2.6
Archived
13
0
Fork 0

USB: input: gtco.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>
This commit is contained in:
Greg Kroah-Hartman 2012-05-01 20:57:00 -04:00
parent 383c52f338
commit 88d5ab3a18
1 changed files with 1 additions and 1 deletions

View File

@ -806,7 +806,7 @@ static void gtco_urb_callback(struct urb *urbinfo)
resubmit:
rc = usb_submit_urb(urbinfo, GFP_ATOMIC);
if (rc != 0)
dev_err(&device->usbdev->dev,
dev_err(&inputdev->dev,
"usb_submit_urb failed rc=0x%x\n", rc);
}