The patch titled Subject: leds-heartbeat-stop-on-shutdown-v5 has been added to the -mm tree. Its filename is leds-heartbeat-stop-on-shutdown-v5.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alexander Holler <holler@xxxxxxxxxxxxx> Subject: leds-heartbeat-stop-on-shutdown-v5 Signed-off-by: Alexander Holler <holler@xxxxxxxxxxxxx> Cc: Shuah Khan <shuahkhan@xxxxxxxxx> Cc: Richard Purdie <rpurdie@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/leds/ledtrig-heartbeat.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff -puN drivers/leds/ledtrig-heartbeat.c~leds-heartbeat-stop-on-shutdown-v5 drivers/leds/ledtrig-heartbeat.c --- a/drivers/leds/ledtrig-heartbeat.c~leds-heartbeat-stop-on-shutdown-v5 +++ a/drivers/leds/ledtrig-heartbeat.c @@ -115,17 +115,26 @@ static struct notifier_block heartbeat_r .notifier_call = heartbeat_reboot_notifier, }; +static struct notifier_block heartbeat_panic_nb = { + .notifier_call = heartbeat_reboot_notifier, +}; + static int __init heartbeat_trig_init(void) { int rc = led_trigger_register(&heartbeat_led_trigger); - if( ! rc ) + if (!rc) { + atomic_notifier_chain_register(&panic_notifier_list, + &heartbeat_panic_nb); register_reboot_notifier(&heartbeat_reboot_nb); + } return rc; } static void __exit heartbeat_trig_exit(void) { unregister_reboot_notifier(&heartbeat_reboot_nb); + atomic_notifier_chain_unregister(&panic_notifier_list, + &heartbeat_panic_nb); led_trigger_unregister(&heartbeat_led_trigger); } _ Subject: Subject: leds-heartbeat-stop-on-shutdown-v5 Patches currently in -mm which might be from holler@xxxxxxxxxxxxx are leds-heartbeat-stop-on-shutdown.patch leds-heartbeat-stop-on-shutdown-v5.patch leds-heartbeat-stop-on-shutdown-checkpatch-fixes.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