]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/reboot.c: add devm_register_reboot_notifier()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Fri, 17 Nov 2017 23:30:57 +0000 (15:30 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Nov 2017 00:10:04 +0000 (16:10 -0800)
commit2b97cf049120c90925b41036087e86cf706e9975
treefde83e8f69dbf7b69ce7ba4c5abfe9252eac9db7
parentbb32735a3bb24c04a6f2fb2fe22580b161c1b137
kernel/reboot.c: add devm_register_reboot_notifier()

Add devm_* wrapper around register_reboot_notifier to simplify device
specific reboot notifier registration/unregistration.

[akpm@linux-foundation.org: move `struct device' forward decl to top-of-file]
Link: http://lkml.kernel.org/r/20170320171753.1705-1-andrew.smirnov@gmail.com
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/reboot.h
kernel/reboot.c