Commit 64344d78 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville

at76c50x-usb: remove unneeded flush_workqueue() at usb disconnect

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: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: default avatarKalle Valo <kalle.valo@iki.fi>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8784d2ee
...@@ -2298,10 +2298,8 @@ static void at76_delete_device(struct at76_priv *priv) ...@@ -2298,10 +2298,8 @@ static void at76_delete_device(struct at76_priv *priv)
tasklet_kill(&priv->rx_tasklet); tasklet_kill(&priv->rx_tasklet);
if (priv->mac80211_registered) { if (priv->mac80211_registered)
flush_workqueue(priv->hw->workqueue);
ieee80211_unregister_hw(priv->hw); ieee80211_unregister_hw(priv->hw);
}
if (priv->tx_urb) { if (priv->tx_urb) {
usb_kill_urb(priv->tx_urb); usb_kill_urb(priv->tx_urb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment