at76c50x-usb: remove unneeded flush_workqueue() at usb disconnect
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 29 Jul 2009 21:20:41 +0000 (14:20 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:43:27 +0000 (16:43 -0400)
This driver only uses the mac80211 workqueue and mac80211 requires us to
cancel all work at driver stop. Since we now have the cancels in the right
places at stop() we really don't need to flush the mac80211 workqueue so
remove it.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/at76c50x-usb.c

index f46e2b33b1f906ef22aca7d25a98ed6fb8d8250c..aff09a1cf64f16afeb94a64717adec56cdaad18e 100644 (file)
@@ -2298,10 +2298,8 @@ static void at76_delete_device(struct at76_priv *priv)
 
        tasklet_kill(&priv->rx_tasklet);
 
-       if (priv->mac80211_registered) {
-               flush_workqueue(priv->hw->workqueue);
+       if (priv->mac80211_registered)
                ieee80211_unregister_hw(priv->hw);
-       }
 
        if (priv->tx_urb) {
                usb_kill_urb(priv->tx_urb);