rfkill: Use subsys_initcall
authorMichael Buesch <mb@bu3sch.de>
Sun, 28 Oct 2007 13:39:02 +0000 (14:39 +0100)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 11 Nov 2007 05:59:33 +0000 (21:59 -0800)
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>
net/rfkill/rfkill.c

index c6a9412fe5bd40efbf338dc310bc3467516430ac..bbfbb9e7a917c81d894e56ddb0fa96fea6e7444a 100644 (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);