]> 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)
commit0e7b4d799f61249fbfe55c62223c3f66af95c86c
treefde83e8f69dbf7b69ce7ba4c5abfe9252eac9db7
parentc98b28f178143910f997829ce660a233bc075bed
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