Without exit function, reboot notifier is not unregistered,
so unloading is failed with busy error. Add exit function
unregistering reboot notifier to support unload.
Change-Id: Id2fb51f7b6635d0a2bee11ed7ef1bfa96c46ac5c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
return 0;
}
+static void inform_reboot_exit(void)
+{
+ unregister_reboot_notifier(&nb_inform_reboot_block);
+}
+
subsys_initcall(inform_reboot_init);
+module_exit(inform_reboot_exit);
MODULE_LICENSE("GPL");