The patch titled leds: turn LED off when changing triggers has been added to the -mm tree. Its filename is leds-turn-led-off-when-changing-triggers.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: leds: turn LED off when changing triggers From: Paul Collins <paul@xxxxxxxxxxxxxxxxxxx> I was playing with LED triggers when I noticed that changing from heartbeat (or ide-disk) to "none" at the right moment would leave the LED stuck on. This is easy to reproduce by doing "find / >/dev/null" with the ide-disk trigger enabled and then switching to "none". Here is a patch that fixes the problem by explicitly turning the LED off after removing the existing trigger. Signed-off-by: Paul Collins <paul@xxxxxxxxxxxxx> Cc: Richard Purdie <rpurdie@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/leds/led-triggers.c | 1 + 1 files changed, 1 insertion(+) diff -puN drivers/leds/led-triggers.c~leds-turn-led-off-when-changing-triggers drivers/leds/led-triggers.c --- a/drivers/leds/led-triggers.c~leds-turn-led-off-when-changing-triggers +++ a/drivers/leds/led-triggers.c @@ -125,6 +125,7 @@ void led_trigger_set(struct led_classdev write_unlock_irqrestore(&led_cdev->trigger->leddev_list_lock, flags); if (led_cdev->trigger->deactivate) led_cdev->trigger->deactivate(led_cdev); + led_set_brightness(led_cdev, LED_OFF); } if (trigger) { write_lock_irqsave(&trigger->leddev_list_lock, flags); _ Patches currently in -mm which might be from paul@xxxxxxxxxxxxxxxxxxx are leds-turn-led-off-when-changing-triggers.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html