Commit 2bf236d5 authored by Michael Buesch's avatar Michael Buesch Committed by David S. Miller

rfkill: Use subsys_initcall

We must use subsys_initcall, because we must initialize before a
driver calls rfkill_register().
Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ac71c691
...@@ -449,5 +449,5 @@ static void __exit rfkill_exit(void) ...@@ -449,5 +449,5 @@ static void __exit rfkill_exit(void)
class_unregister(&rfkill_class); class_unregister(&rfkill_class);
} }
module_init(rfkill_init); subsys_initcall(rfkill_init);
module_exit(rfkill_exit); module_exit(rfkill_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment