Skip to content

Commit f8fffc7

Browse files
committed
mac80211_hwsim: move module_init/exit
These should be with the functions so move the module_init/exit statements. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent ad0ed62 commit f8fffc7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎drivers/net/wireless/mac80211_hwsim.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ static int __init init_mac80211_hwsim(void)
20562056
mac80211_hwsim_free();
20572057
return err;
20582058
}
2059-
2059+
module_init(init_mac80211_hwsim);
20602060

20612061
static void __exit exit_mac80211_hwsim(void)
20622062
{
@@ -2067,7 +2067,4 @@ static void __exit exit_mac80211_hwsim(void)
20672067
mac80211_hwsim_free();
20682068
unregister_netdev(hwsim_mon);
20692069
}
2070-
2071-
2072-
module_init(init_mac80211_hwsim);
20732070
module_exit(exit_mac80211_hwsim);

0 commit comments

Comments
 (0)