diff options
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index 054f0c521e6f..a1ef41f067ce 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c | |||
@@ -1207,7 +1207,6 @@ static void hid_cease_io(struct usbhid_device *usbhid) | |||
1207 | usb_kill_urb(usbhid->urbin); | 1207 | usb_kill_urb(usbhid->urbin); |
1208 | usb_kill_urb(usbhid->urbctrl); | 1208 | usb_kill_urb(usbhid->urbctrl); |
1209 | usb_kill_urb(usbhid->urbout); | 1209 | usb_kill_urb(usbhid->urbout); |
1210 | flush_scheduled_work(); | ||
1211 | } | 1210 | } |
1212 | 1211 | ||
1213 | /* Treat USB reset pretty much the same as suspend/resume */ | 1212 | /* Treat USB reset pretty much the same as suspend/resume */ |
@@ -1219,6 +1218,7 @@ static int hid_pre_reset(struct usb_interface *intf) | |||
1219 | spin_lock_irq(&usbhid->lock); | 1218 | spin_lock_irq(&usbhid->lock); |
1220 | set_bit(HID_RESET_PENDING, &usbhid->iofl); | 1219 | set_bit(HID_RESET_PENDING, &usbhid->iofl); |
1221 | spin_unlock_irq(&usbhid->lock); | 1220 | spin_unlock_irq(&usbhid->lock); |
1221 | cancel_work_sync(&usbhid->restart_work); | ||
1222 | hid_cease_io(usbhid); | 1222 | hid_cease_io(usbhid); |
1223 | 1223 | ||
1224 | return 0; | 1224 | return 0; |