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:
Michael Buesch 2007-10-28 14:39:02 +01:00 committed by David S. Miller
parent ac71c691e6
commit 2bf236d55e

View file

@ -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);