]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
HID: Remove the semaphore driver_lock
authorBinoy Jayan <binoy.jayan@linaro.org>
Wed, 14 Jun 2017 07:29:51 +0000 (12:59 +0530)
committerJiri Kosina <jkosina@suse.cz>
Tue, 1 Aug 2017 11:12:46 +0000 (13:12 +0200)
commit6f68f0ac72087c29a94d1736324902e3ec07a4ec
tree21eccc6ce85d005d4a669c55aee0638010cf2d02
parenta9d0683e0b62b46c7a5d0ebd8f642d8f9a4b7b32
HID: Remove the semaphore driver_lock

The semaphore 'driver_lock' is used as a simple mutex, and also unnecessary as
suggested by Arnd. Hence removing it, as the concurrency between the probe and
remove is already handled in the driver core.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
include/linux/hid.h