drivers/watchdog: make use of devm_register_reboot_notifier()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Fri, 17 Nov 2017 23:31:01 +0000 (15:31 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Nov 2017 00:10:04 +0000 (16:10 -0800)
commit44ea39420fc95e7432ddc91de4eb58c7470ab897
tree046d89fe44f3874baf9242dea3d34bb991c4c2b4
parent2d8364bae4db144df75ba85e92d2b8619ba8eedc
drivers/watchdog: make use of devm_register_reboot_notifier()

Save a bit of cleanup code by leveraging newly added
devm_register_reboot_notifier().

[akpm@linux-foundation.org: small cleanup: avoid 80-col tricks]
Link: http://lkml.kernel.org/r/20170411160615.9784-1-andrew.smirnov@gmail.com
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/watchdog/watchdog_core.c
drivers/watchdog/watchdog_dev.c