diff options
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/ledtrig-timer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/leds/ledtrig-timer.c b/drivers/leds/ledtrig-timer.c index db681962d7bb..3d6531396dda 100644 --- a/drivers/leds/ledtrig-timer.c +++ b/drivers/leds/ledtrig-timer.c | |||
@@ -199,6 +199,7 @@ err_out: | |||
199 | static void timer_trig_deactivate(struct led_classdev *led_cdev) | 199 | static void timer_trig_deactivate(struct led_classdev *led_cdev) |
200 | { | 200 | { |
201 | struct timer_trig_data *timer_data = led_cdev->trigger_data; | 201 | struct timer_trig_data *timer_data = led_cdev->trigger_data; |
202 | unsigned long on = 0, off = 0; | ||
202 | 203 | ||
203 | if (timer_data) { | 204 | if (timer_data) { |
204 | device_remove_file(led_cdev->dev, &dev_attr_delay_on); | 205 | device_remove_file(led_cdev->dev, &dev_attr_delay_on); |
@@ -206,6 +207,10 @@ static void timer_trig_deactivate(struct led_classdev *led_cdev) | |||
206 | del_timer_sync(&timer_data->timer); | 207 | del_timer_sync(&timer_data->timer); |
207 | kfree(timer_data); | 208 | kfree(timer_data); |
208 | } | 209 | } |
210 | |||
211 | /* If there is hardware support for blinking, stop it */ | ||
212 | if (led_cdev->blink_set) | ||
213 | led_cdev->blink_set(led_cdev, &on, &off); | ||
209 | } | 214 | } |
210 | 215 | ||
211 | static struct led_trigger timer_led_trigger = { | 216 | static struct led_trigger timer_led_trigger = { |