Commit 86e99d23 authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Bryan Wu

Revert "leds: use led_set_brightness in led_trigger_event"

This reverts commit a0193cbe.

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: default avatarFabio Baltieri <fabio.baltieri@gmail.com>
Reported-by: default avatarPawel Moll <pawel.moll@arm.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@canonical.com>
parent 4df7309a
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment