leds: Fix led trigger locking bugs
authorRichard Purdie <rpurdie@rpsys.net>
Sat, 10 Nov 2007 13:29:04 +0000 (13:29 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Fri, 7 Dec 2007 09:06:53 +0000 (09:06 +0000)
commitdc47206e552c0850ad11f7e9a1fca0a3c92f5d65
tree01188f5ca89d295009a618e1be6c5cea2926a522
parentf194d132e4971111f85c18c96067acffb13cee6d
leds: Fix led trigger locking bugs

Convert part of the led trigger core from rw spinlocks to rw
semaphores. We're calling functions which can sleep from invalid
contexts otherwise. Fixes bug #9264.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
drivers/leds/led-class.c
drivers/leds/led-triggers.c
include/linux/leds.h