Skip to content

Commit

Permalink
mac80211_hwsim: move module_init/exit
Browse files Browse the repository at this point in the history
These should be with the functions so move
the module_init/exit statements.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Sep 6, 2012
1 parent ad0ed62 commit f8fffc7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@ static int __init init_mac80211_hwsim(void)
mac80211_hwsim_free();
return err;
}

module_init(init_mac80211_hwsim);

static void __exit exit_mac80211_hwsim(void)
{
Expand All @@ -2067,7 +2067,4 @@ static void __exit exit_mac80211_hwsim(void)
mac80211_hwsim_free();
unregister_netdev(hwsim_mon);
}


module_init(init_mac80211_hwsim);
module_exit(exit_mac80211_hwsim);

0 comments on commit f8fffc7

Please sign in to comment.