Skip to content

Commit

Permalink
USB: input: joystick: iforce: fix up dev_err() usages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed May 1, 2012
1 parent ade749a commit d331efd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/input/joystick/iforce/iforce-packets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/joystick/iforce/iforce-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d331efd

Please sign in to comment.