diff options
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c index c6451c61407a..c70cf7b654cd 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include "mac80211_if.h" | 34 | #include "mac80211_if.h" |
35 | #include "main.h" | 35 | #include "main.h" |
36 | #include "debug.h" | 36 | #include "debug.h" |
37 | #include "led.h" | ||
37 | 38 | ||
38 | #define N_TX_QUEUES 4 /* #tx queues on mac80211<->driver interface */ | 39 | #define N_TX_QUEUES 4 /* #tx queues on mac80211<->driver interface */ |
39 | #define BRCMS_FLUSH_TIMEOUT 500 /* msec */ | 40 | #define BRCMS_FLUSH_TIMEOUT 500 /* msec */ |
@@ -904,6 +905,7 @@ static void brcms_remove(struct bcma_device *pdev) | |||
904 | struct brcms_info *wl = hw->priv; | 905 | struct brcms_info *wl = hw->priv; |
905 | 906 | ||
906 | if (wl->wlc) { | 907 | if (wl->wlc) { |
908 | brcms_led_unregister(wl); | ||
907 | wiphy_rfkill_set_hw_state(wl->pub->ieee_hw->wiphy, false); | 909 | wiphy_rfkill_set_hw_state(wl->pub->ieee_hw->wiphy, false); |
908 | wiphy_rfkill_stop_polling(wl->pub->ieee_hw->wiphy); | 910 | wiphy_rfkill_stop_polling(wl->pub->ieee_hw->wiphy); |
909 | ieee80211_unregister_hw(hw); | 911 | ieee80211_unregister_hw(hw); |
@@ -1151,6 +1153,8 @@ static int brcms_bcma_probe(struct bcma_device *pdev) | |||
1151 | pr_err("%s: brcms_attach failed!\n", __func__); | 1153 | pr_err("%s: brcms_attach failed!\n", __func__); |
1152 | return -ENODEV; | 1154 | return -ENODEV; |
1153 | } | 1155 | } |
1156 | brcms_led_register(wl); | ||
1157 | |||
1154 | return 0; | 1158 | return 0; |
1155 | } | 1159 | } |
1156 | 1160 | ||