diff options
author | Oliver Neukum <oliver@neukum.org> | 2009-11-23 11:10:50 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-11-23 11:49:31 -0500 |
commit | 722232bcd8086b37cd3af7d9e94e7e10b231979e (patch) | |
tree | 6cad1589ccb3124e807a95d6366d794d490af735 /drivers | |
parent | 985f37f827f5012f88e286914cdbae87b9f50ed1 (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')
-rw-r--r-- | drivers/input/touchscreen/usbtouchscreen.c | 2 |
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) | |||
1087 | 1087 | ||
1088 | dbg("%s - usbtouch is initialized, cleaning up", __func__); | 1088 | dbg("%s - usbtouch is initialized, cleaning up", __func__); |
1089 | usb_set_intfdata(intf, NULL); | 1089 | usb_set_intfdata(intf, NULL); |
1090 | usb_kill_urb(usbtouch->irq); | 1090 | /* this will stop IO via close */ |
1091 | input_unregister_device(usbtouch->input); | 1091 | input_unregister_device(usbtouch->input); |
1092 | usb_free_urb(usbtouch->irq); | 1092 | usb_free_urb(usbtouch->irq); |
1093 | usbtouch_free_buffers(interface_to_usbdev(intf), usbtouch); | 1093 | usbtouch_free_buffers(interface_to_usbdev(intf), usbtouch); |