]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75a35fa1f2fcc90eae833cb1ebb3d2c200684db7
tree046d89fe44f3874baf9242dea3d34bb991c4c2b4
parent0e7b4d799f61249fbfe55c62223c3f66af95c86c
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