diff options
-rw-r--r-- | drivers/leds/led-triggers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/leds/led-triggers.c b/drivers/leds/led-triggers.c index 47f0ff196328..454fb0901f82 100644 --- a/drivers/leds/led-triggers.c +++ b/drivers/leds/led-triggers.c | |||
@@ -125,6 +125,7 @@ void led_trigger_set(struct led_classdev *led_cdev, struct led_trigger *trigger) | |||
125 | write_unlock_irqrestore(&led_cdev->trigger->leddev_list_lock, flags); | 125 | write_unlock_irqrestore(&led_cdev->trigger->leddev_list_lock, flags); |
126 | if (led_cdev->trigger->deactivate) | 126 | if (led_cdev->trigger->deactivate) |
127 | led_cdev->trigger->deactivate(led_cdev); | 127 | led_cdev->trigger->deactivate(led_cdev); |
128 | led_set_brightness(led_cdev, LED_OFF); | ||
128 | } | 129 | } |
129 | if (trigger) { | 130 | if (trigger) { |
130 | write_lock_irqsave(&trigger->leddev_list_lock, flags); | 131 | write_lock_irqsave(&trigger->leddev_list_lock, flags); |