aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/at76c50x-usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/at76c50x-usb.c')
-rw-r--r--drivers/net/wireless/at76c50x-usb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index f46e2b33b1f9..aff09a1cf64f 100644
--- a/drivers/net/wireless/at76c50x-usb.c
+++ b/drivers/net/wireless/at76c50x-usb.c
@@ -2298,10 +2298,8 @@ static void at76_delete_device(struct at76_priv *priv)
2298 2298
2299 tasklet_kill(&priv->rx_tasklet); 2299 tasklet_kill(&priv->rx_tasklet);
2300 2300
2301 if (priv->mac80211_registered) { 2301 if (priv->mac80211_registered)
2302 flush_workqueue(priv->hw->workqueue);
2303 ieee80211_unregister_hw(priv->hw); 2302 ieee80211_unregister_hw(priv->hw);
2304 }
2305 2303
2306 if (priv->tx_urb) { 2304 if (priv->tx_urb) {
2307 usb_kill_urb(priv->tx_urb); 2305 usb_kill_urb(priv->tx_urb);