From: Michael Buesch Date: Sun, 28 Oct 2007 13:39:02 +0000 (+0100) Subject: rfkill: Use subsys_initcall X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2bf236d55e5ea2b92ed5235af09997c2995b316b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rfkill: Use subsys_initcall We must use subsys_initcall, because we must initialize before a driver calls rfkill_register(). Signed-off-by: Michael Buesch Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c index c6a9412fe5bd..bbfbb9e7a917 100644 --- a/net/rfkill/rfkill.c +++ b/net/rfkill/rfkill.c @@ -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);