Skip to content

Commit

Permalink
wireless: move regulatory_init to .init.text
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and John W. Linville committed Jun 18, 2010
1 parent f884e38 commit 2fcc9f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2630,7 +2630,7 @@ void reg_device_remove(struct wiphy *wiphy)
mutex_unlock(&reg_mutex);
}

int regulatory_init(void)
int __init regulatory_init(void)
{
int err = 0;

Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion net/wireless/reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2fcc9f7

Please sign in to comment.