aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath9k/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c
index 3355ba4043e8..4c2c58e2db47 100644
--- a/drivers/net/wireless/ath9k/main.c
+++ b/drivers/net/wireless/ath9k/main.c
@@ -834,13 +834,13 @@ static void ath_detach(struct ath_softc *sc)
834 834
835 DPRINTF(sc, ATH_DBG_CONFIG, "%s: Detach ATH hw\n", __func__); 835 DPRINTF(sc, ATH_DBG_CONFIG, "%s: Detach ATH hw\n", __func__);
836 836
837 ieee80211_unregister_hw(hw);
838
839 ath_deinit_leds(sc);
840
841#if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) 837#if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE)
842 ath_deinit_rfkill(sc); 838 ath_deinit_rfkill(sc);
843#endif 839#endif
840 ath_deinit_leds(sc);
841
842 ieee80211_unregister_hw(hw);
843
844 ath_rate_control_unregister(); 844 ath_rate_control_unregister();
845 ath_rate_detach(sc->sc_rc); 845 ath_rate_detach(sc->sc_rc);
846 846