mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
USB: usbtouchscreen.c: remove err() usage
err() was a very old USB-specific macro that I thought had gone away. This patch removes it from being used in the driver and uses dev_err() instead. CC: Dmitry Torokhov <[email protected]> CC: Henrik Rydberg <[email protected]> CC: Rusty Russell <[email protected]> CC: Viresh Kumar <[email protected]> CC: Armando Visconti <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
b3169fecb1
commit
e27ad0fe9c
1 changed files with 6 additions and 4 deletions
|
|
@ -1380,8 +1380,9 @@ exit:
|
|||
usb_mark_last_busy(interface_to_usbdev(usbtouch->interface));
|
||||
retval = usb_submit_urb(urb, GFP_ATOMIC);
|
||||
if (retval)
|
||||
err("%s - usb_submit_urb failed with result: %d",
|
||||
__func__, retval);
|
||||
dev_err(&usbtouch->interface->dev,
|
||||
"%s - usb_submit_urb failed with result: %d\n",
|
||||
__func__, retval);
|
||||
}
|
||||
|
||||
static int usbtouch_open(struct input_dev *input)
|
||||
|
|
@ -1622,8 +1623,9 @@ static int usbtouch_probe(struct usb_interface *intf,
|
|||
err = usb_submit_urb(usbtouch->irq, GFP_KERNEL);
|
||||
if (err) {
|
||||
usb_autopm_put_interface(intf);
|
||||
err("%s - usb_submit_urb failed with result: %d",
|
||||
__func__, err);
|
||||
dev_err(&intf->dev,
|
||||
"%s - usb_submit_urb failed with result: %d\n",
|
||||
__func__, err);
|
||||
goto out_unregister_input;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue