From: Arnd Bergmann Date: Sun, 11 Jul 2010 13:34:05 +0000 (+0200) Subject: HID: hiddev: use usb_find_interface, get rid of BKL X-Git-Tag: v2.6.36-rc1~567^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd25f4dd6972755579d0ea50d1a5ace2e9b00d1a;p=pandora-kernel.git HID: hiddev: use usb_find_interface, get rid of BKL This removes the private hiddev_table in the usbhid driver and changes it to use usb_find_interface instead. The advantage is that we can avoid the race between usb_register_dev and usb_open and no longer need the big kernel lock. This doesn't introduce race condition -- the intf pointer could be invalidated only in hiddev_disconnect() through usb_deregister_dev(), but that will block on minor_rwsem and not actually remove the device until usb_open(). Signed-off-by: Arnd Bergmann Cc: Jiri Kosina Cc: "Greg Kroah-Hartman" Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed