From: Johannes Berg Date: Mon, 10 Sep 2007 11:44:45 +0000 (+0200) Subject: [PATCH] cfg80211: fix initialisation if built-in X-Git-Tag: v2.6.23-rc9~41^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a4624652e68ee897145ac698a85bfd2603367c3;p=linux-2.6 [PATCH] cfg80211: fix initialisation if built-in When cfg80211 is built into the kernel it needs to init earlier so that device registrations are run after it has initialised. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/wireless/core.c b/net/wireless/core.c index 7eabd55417..9771451eae 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -213,7 +213,7 @@ out_fail_notifier: out_fail_sysfs: return err; } -module_init(cfg80211_init); +subsys_initcall(cfg80211_init); static void cfg80211_exit(void) {