mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
Revert "leds: use led_set_brightness in led_trigger_event"
This reverts commit a0193cbee0
.
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 <fabio.baltieri@gmail.com>
Reported-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
This commit is contained in:
parent
4df7309af6
commit
86e99d23d0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue