Commit d331efdd authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: input: joystick: iforce: fix up dev_err() usages

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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ade749a6
......@@ -257,7 +257,7 @@ int iforce_get_id_packet(struct iforce *iforce, char *packet)
status = usb_submit_urb(iforce->ctrl, GFP_ATOMIC);
if (status) {
dev_err(&iforce->usbdev->dev,
dev_err(&iforce->dev->dev,
"usb_submit_urb failed %d\n", status);
return -1;
}
......
......@@ -100,7 +100,7 @@ static void iforce_usb_irq(struct urb *urb)
exit:
status = usb_submit_urb (urb, GFP_ATOMIC);
if (status)
dev_err(&iforce->usbdev->dev,
dev_err(&iforce->dev->dev,
"%s - usb_submit_urb failed with result %d\n",
__func__, status);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment