leds: Remove incorrect use of preempt_count() from leds-gpio
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 27 Mar 2008 00:59:02 +0000 (00:59 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Mon, 31 Mar 2008 22:31:13 +0000 (23:31 +0100)
commit306dd85c1d41e20a07d1e821e27f5df4927bb5e7
treea20f7b63be7b176700c40348a82eedcc8b6e8876
parentd95cbe6158a679d50e03787bb1dc21ff73dac372
leds: Remove incorrect use of preempt_count() from leds-gpio

It appears that we can't just check to see if we're in a task
context ... so instead of trying that, just make the relevant
leds always schedule a little worklet.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
drivers/leds/leds-gpio.c