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>
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;
}
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);
}