projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
859cb7f
)
leds: ledtrig-timer - on deactivation hardware blinking should be disabled
author
Rodolfo Giometti
<giometti@linux.it>
Thu, 8 Jan 2009 19:50:15 +0000
(19:50 +0000)
committer
Richard Purdie
<rpurdie@linux.intel.com>
Thu, 8 Jan 2009 20:58:01 +0000
(20:58 +0000)
Signed-off-by: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/leds/ledtrig-timer.c
patch
|
blob
|
history
diff --git
a/drivers/leds/ledtrig-timer.c
b/drivers/leds/ledtrig-timer.c
index
db68196
..
3d65313
100644
(file)
--- a/
drivers/leds/ledtrig-timer.c
+++ b/
drivers/leds/ledtrig-timer.c
@@
-199,6
+199,7
@@
err_out:
static void timer_trig_deactivate(struct led_classdev *led_cdev)
{
struct timer_trig_data *timer_data = led_cdev->trigger_data;
+ unsigned long on = 0, off = 0;
if (timer_data) {
device_remove_file(led_cdev->dev, &dev_attr_delay_on);
@@
-206,6
+207,10
@@
static void timer_trig_deactivate(struct led_classdev *led_cdev)
del_timer_sync(&timer_data->timer);
kfree(timer_data);
}
+
+ /* If there is hardware support for blinking, stop it */
+ if (led_cdev->blink_set)
+ led_cdev->blink_set(led_cdev, &on, &off);
}
static struct led_trigger timer_led_trigger = {