Commit c8de0f9b authored by Borislav Petkov's avatar Borislav Petkov Committed by Greg Kroah-Hartman

[PATCH] USB: remove calls to usb_unlink_urb in input/mtouchusb.c

Signed-off-by: default avatarBorislav Petkov <petkov@uni-muenster.de>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 6bc76e9d
......@@ -155,7 +155,7 @@ static void mtouchusb_close (struct input_dev *input)
struct mtouch_usb *mtouch = input->private;
if (!--mtouch->open)
usb_unlink_urb (mtouch->irq);
usb_kill_urb (mtouch->irq);
}
static int mtouchusb_alloc_buffers(struct usb_device *udev, struct mtouch_usb *mtouch)
......@@ -320,7 +320,7 @@ static void mtouchusb_disconnect(struct usb_interface *intf)
usb_set_intfdata(intf, NULL);
if (mtouch) {
dbg("%s - mtouch is initialized, cleaning up", __FUNCTION__);
usb_unlink_urb(mtouch->irq);
usb_kill_urb(mtouch->irq);
input_unregister_device(&mtouch->input);
usb_free_urb(mtouch->irq);
mtouchusb_free_buffers(interface_to_usbdev(intf), mtouch);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment