Commit 3a462465 authored by Johannes Berg's avatar Johannes Berg Committed by David S. Miller

[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: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7b5ee3a0
...@@ -213,7 +213,7 @@ static int cfg80211_init(void) ...@@ -213,7 +213,7 @@ static int cfg80211_init(void)
out_fail_sysfs: out_fail_sysfs:
return err; return err;
} }
module_init(cfg80211_init); subsys_initcall(cfg80211_init);
static void cfg80211_exit(void) static void cfg80211_exit(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment