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)
commit2d8364bae4db144df75ba85e92d2b8619ba8eedc
treefde83e8f69dbf7b69ce7ba4c5abfe9252eac9db7
parentc512ac01d8a841033da8ec538a83f80fb0b4d1fe
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