HID: picoLCD: Improve unplug handling
authorBruno Prémont <bonbons@linux-vserver.org>
Mon, 30 Jul 2012 19:38:57 +0000 (21:38 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 15 Aug 2012 08:13:26 +0000 (10:13 +0200)
commita93ab8494873a88622bf74be861a93f875643524
tree19f76ccf334ffb78b387b10c047df61f44d8fa07
parentbaacf9c5d2e631e7c940527ad670c8d4b019da81
HID: picoLCD: Improve unplug handling

Stop earlier attempting to submit new reports/URBs (though locking and
usbhid still prevents to bail out early enough to not produce multiple
  hid-picolcd 0003:04D8:C002.0003: usb_submit_urb(out) failed: -19
messages in kernel log.

Strengthen framebuffer removal to be less racy.

Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-picolcd_backlight.c
drivers/hid/hid-picolcd_core.c
drivers/hid/hid-picolcd_fb.c
drivers/hid/hid-picolcd_lcd.c
drivers/hid/hid-picolcd_leds.c