leds: leds-ns2: fix locking
authorSimon Guinot <sguinot@lacie.com>
Sun, 19 Sep 2010 13:30:59 +0000 (15:30 +0200)
committerNicolas Pitre <nico@fluxnic.net>
Mon, 20 Sep 2010 02:43:42 +0000 (22:43 -0400)
commitf539dfedbd169e5ed47912bb517c75976ab556f3
tree2619d29fb7da50574b60a77cde5b140a256c9461
parentc4a90588fa07ea47df7a67fd6cb03d6bc0f99634
leds: leds-ns2: fix locking

This patch replace all the lock functions with the irq safe variant.
The ns2_led_{set,get}_mode() functions must be safe in all context.

For example, the trigger timer call led_set_brightness() in a softirq
context.

Signed-off-by: Simon Guinot <sguinot@lacie.com>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
drivers/leds/leds-ns2.c