Skip to content

Commit

Permalink
Revert "leds: use led_set_brightness in led_trigger_event"
Browse files Browse the repository at this point in the history
This reverts commit a0193cb.

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 <[email protected]>
Reported-by: Pawel Moll <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
  • Loading branch information
fabiobaltieri authored and Bryan Wu committed Aug 13, 2012
1 parent 4df7309 commit 86e99d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/led-triggers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 86e99d2

Please sign in to comment.