staging/easycap: Eliminate BKL
authorMike Thomas <rmthomas@sciolus.org>
Sun, 7 Nov 2010 20:09:19 +0000 (20:09 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Nov 2010 00:31:15 +0000 (16:31 -0800)
commitae59dad4fef271222d65ac6afe2889eb12ea6ca9
treed0f5faa52d1ca75c5104d6c52699b5c72d588fbc
parent2a87a0b9220f8e0e6f204b0f61dc6e15ad64ccd4
staging/easycap: Eliminate BKL

No locking is required for normal operation of the driver, but locking
is needed to prevent an Oops during some hot-unplugging scenarios.  The
BKL is replaced here by mutex locks together with traps to detect null
pointers following asynchronous device disconnection.

Signed-off-by: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/Kconfig
drivers/staging/easycap/Makefile
drivers/staging/easycap/easycap.h
drivers/staging/easycap/easycap_debug.h
drivers/staging/easycap/easycap_ioctl.c
drivers/staging/easycap/easycap_low.c
drivers/staging/easycap/easycap_main.c
drivers/staging/easycap/easycap_sound.c