wireless: move regulatory_init to .init.text

regulatory_init is only called by cfg80211_init which is in .init.text,
too.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Uwe Kleine-König 2010-06-18 09:38:55 +02:00 committed by John W. Linville
parent f884e3879b
commit 2fcc9f731b
2 changed files with 3 additions and 3 deletions

View File

@ -2630,7 +2630,7 @@ out:
mutex_unlock(&reg_mutex);
}
int regulatory_init(void)
int __init regulatory_init(void)
{
int err = 0;
@ -2676,7 +2676,7 @@ int regulatory_init(void)
return 0;
}
void regulatory_exit(void)
void /* __init_or_exit */ regulatory_exit(void)
{
struct regulatory_request *reg_request, *tmp;
struct reg_beacon *reg_beacon, *btmp;

View File

@ -10,7 +10,7 @@ int regulatory_hint_user(const char *alpha2);
void reg_device_remove(struct wiphy *wiphy);
int regulatory_init(void);
int __init regulatory_init(void);
void regulatory_exit(void);
int set_regdom(const struct ieee80211_regdomain *rd);