[PATCH] cfg80211: fix initialisation if built-in
authorJohannes Berg <[email protected]>
Mon, 10 Sep 2007 11:44:45 +0000 (13:44 +0200)
committerDavid S. Miller <[email protected]>
Wed, 26 Sep 2007 05:55:44 +0000 (22:55 -0700)
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 <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
net/wireless/core.c

index 7eabd55417a5eab222a4c756d1e2181513575cc7..9771451eae217d9624db3efbac4e08f91ec9ab5c 100644 (file)
@@ -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)
 {