rfkill: Use subsys_initcall
We must use subsys_initcall, because we must initialize before a driver calls rfkill_register(). Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
ac71c691e6
commit
2bf236d55e
@ -449,5 +449,5 @@ static void __exit rfkill_exit(void)
|
||||
class_unregister(&rfkill_class);
|
||||
}
|
||||
|
||||
module_init(rfkill_init);
|
||||
subsys_initcall(rfkill_init);
|
||||
module_exit(rfkill_exit);
|
||||
|
Loading…
Reference in New Issue
Block a user