Input: remove BKL, fix input_open_file() locking
commit2f2177c8dadbcb08c14f796ac983c5475eca1bd3
authorArnd Bergmann <arnd@arndb.de>
Wed, 10 Mar 2010 04:38:48 +0000 (9 20:38 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 10 Mar 2010 06:05:57 +0000 (9 22:05 -0800)
tree719c9f14280ca717e1651653e892179fb304590a
parent77554b4d1fac6a66d4e624a6e36c020a4f5b6b64
Input: remove BKL, fix input_open_file() locking

Holding the BKL in input_open_file seems pointless because it does not
protect against updates of input_table, and all open functions from the
underlying drivers have proper mutex locking.

This makes input_open_file take the input_mutex when accessing
the table and no lock when calling into the lower function.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c