summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/usbtouchscreen.c
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2009-11-23 08:10:50 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-11-23 08:49:31 -0800
commit722232bcd8086b37cd3af7d9e94e7e10b231979e (patch)
tree6cad1589ccb3124e807a95d6366d794d490af735 /drivers/input/touchscreen/usbtouchscreen.c
parent985f37f827f5012f88e286914cdbae87b9f50ed1 (diff)
Input: usbtouchscreen - remove unneeded usb_kill_urb
usb_kill_urb() in disconnect is not needed as unregistering will cause close() to be called. Signed-off-by: Oliver Neukum <oliver@neukum.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen/usbtouchscreen.c')
-rw-r--r--drivers/input/touchscreen/usbtouchscreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c
index 68ece5801a58..eddb628c5459 100644
--- a/drivers/input/touchscreen/usbtouchscreen.c
+++ b/drivers/input/touchscreen/usbtouchscreen.c
@@ -1087,7 +1087,7 @@ static void usbtouch_disconnect(struct usb_interface *intf)
dbg("%s - usbtouch is initialized, cleaning up", __func__);
usb_set_intfdata(intf, NULL);
- usb_kill_urb(usbtouch->irq);
+ /* this will stop IO via close */
input_unregister_device(usbtouch->input);
usb_free_urb(usbtouch->irq);
usbtouch_free_buffers(interface_to_usbdev(intf), usbtouch);