diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-25 17:48:46 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-25 17:48:46 -0400 |
commit | e27ad0fe9cca5e6c98c3af6d7021690b6960adf8 (patch) | |
tree | e2b0155b06ee54208c451a351d134df1ce0befec /drivers/input/touchscreen/usbtouchscreen.c | |
parent | b3169fecb10594ac1182de904d367631a4dbdf1c (diff) |
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 <dmitry.torokhov@gmail.com>
CC: Henrik Rydberg <rydberg@euromail.se>
CC: Rusty Russell <rusty@rustcorp.com.au>
CC: Viresh Kumar <viresh.kumar@st.com>
CC: Armando Visconti <armando.visconti@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/input/touchscreen/usbtouchscreen.c')
-rw-r--r-- | drivers/input/touchscreen/usbtouchscreen.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c index 22cd96f58c99..955441cb030d 100644 --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c | |||
@@ -1380,8 +1380,9 @@ exit: | |||
1380 | usb_mark_last_busy(interface_to_usbdev(usbtouch->interface)); | 1380 | usb_mark_last_busy(interface_to_usbdev(usbtouch->interface)); |
1381 | retval = usb_submit_urb(urb, GFP_ATOMIC); | 1381 | retval = usb_submit_urb(urb, GFP_ATOMIC); |
1382 | if (retval) | 1382 | if (retval) |
1383 | err("%s - usb_submit_urb failed with result: %d", | 1383 | dev_err(&usbtouch->interface->dev, |
1384 | __func__, retval); | 1384 | "%s - usb_submit_urb failed with result: %d\n", |
1385 | __func__, retval); | ||
1385 | } | 1386 | } |
1386 | 1387 | ||
1387 | static int usbtouch_open(struct input_dev *input) | 1388 | static int usbtouch_open(struct input_dev *input) |
@@ -1622,8 +1623,9 @@ static int usbtouch_probe(struct usb_interface *intf, | |||
1622 | err = usb_submit_urb(usbtouch->irq, GFP_KERNEL); | 1623 | err = usb_submit_urb(usbtouch->irq, GFP_KERNEL); |
1623 | if (err) { | 1624 | if (err) { |
1624 | usb_autopm_put_interface(intf); | 1625 | usb_autopm_put_interface(intf); |
1625 | err("%s - usb_submit_urb failed with result: %d", | 1626 | dev_err(&intf->dev, |
1626 | __func__, err); | 1627 | "%s - usb_submit_urb failed with result: %d\n", |
1628 | __func__, err); | ||
1627 | goto out_unregister_input; | 1629 | goto out_unregister_input; |
1628 | } | 1630 | } |
1629 | } | 1631 | } |