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

[PATCH] USB: remove usb_unlink_urb() calls in input/kbtab.c

Signed-off-by: default avatarBorislav Petkov <petkov@uni-muenster.de>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 7689ae9c
...@@ -122,7 +122,7 @@ static void kbtab_close(struct input_dev *dev) ...@@ -122,7 +122,7 @@ static void kbtab_close(struct input_dev *dev)
struct kbtab *kbtab = dev->private; struct kbtab *kbtab = dev->private;
if (!--kbtab->open) if (!--kbtab->open)
usb_unlink_urb(kbtab->irq); usb_kill_urb(kbtab->irq);
} }
static int kbtab_probe(struct usb_interface *intf, const struct usb_device_id *id) static int kbtab_probe(struct usb_interface *intf, const struct usb_device_id *id)
...@@ -205,7 +205,7 @@ static void kbtab_disconnect(struct usb_interface *intf) ...@@ -205,7 +205,7 @@ static void kbtab_disconnect(struct usb_interface *intf)
usb_set_intfdata(intf, NULL); usb_set_intfdata(intf, NULL);
if (kbtab) { if (kbtab) {
usb_unlink_urb(kbtab->irq); usb_kill_urb(kbtab->irq);
input_unregister_device(&kbtab->dev); input_unregister_device(&kbtab->dev);
usb_free_urb(kbtab->irq); usb_free_urb(kbtab->irq);
usb_buffer_free(interface_to_usbdev(intf), 10, kbtab->data, kbtab->data_dma); usb_buffer_free(interface_to_usbdev(intf), 10, kbtab->data, kbtab->data_dma);
......
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