Merge branch 'dts-fixes' into omap-for-v4.15/fixes-dt
[linux-block.git] / include / linux / reboot.h
index d03da0eb95ca773bbe912f6ad139a303299b6412..e63799a6e89515d0893606530b07e101f39c52fb 100644 (file)
@@ -6,6 +6,8 @@
 #include <linux/notifier.h>
 #include <uapi/linux/reboot.h>
 
+struct device;
+
 #define SYS_DOWN       0x0001  /* Notify of system down */
 #define SYS_RESTART    SYS_DOWN
 #define SYS_HALT       0x0002  /* Notify of system halt */
@@ -39,6 +41,8 @@ extern int reboot_force;
 extern int register_reboot_notifier(struct notifier_block *);
 extern int unregister_reboot_notifier(struct notifier_block *);
 
+extern int devm_register_reboot_notifier(struct device *, struct notifier_block *);
+
 extern int register_restart_handler(struct notifier_block *);
 extern int unregister_restart_handler(struct notifier_block *);
 extern void do_kernel_restart(char *cmd);