From: Fabio Baltieri Date: Mon, 13 Aug 2012 06:27:24 +0000 (+0800) Subject: Revert "leds: use led_set_brightness in led_trigger_event" X-Git-Tag: MMI-PSA29.97-13-9~16148^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86e99d23d0210e8d43a0bb576582a455d907578e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Revert "leds: use led_set_brightness in led_trigger_event" This reverts commit a0193cbee0809d65362a0767b2d50306b145b2f5. The problem with the original commit was that it caused a warning with the MMC trigger calling del_timer_sync from hard-irq context. Signed-off-by: Fabio Baltieri Reported-by: Pawel Moll Signed-off-by: Bryan Wu --- diff --git a/drivers/leds/led-triggers.c b/drivers/leds/led-triggers.c index 6157cbbf4113..363975b3c925 100644 --- a/drivers/leds/led-triggers.c +++ b/drivers/leds/led-triggers.c @@ -224,7 +224,7 @@ void led_trigger_event(struct led_trigger *trig, struct led_classdev *led_cdev; led_cdev = list_entry(entry, struct led_classdev, trig_list); - led_set_brightness(led_cdev, brightness); + __led_set_brightness(led_cdev, brightness); } read_unlock(&trig->leddev_list_lock); }