linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] at76c50x-usb: remove unneeded flush_workqueue() at usb disconnect
@ 2009-07-29 21:20 Luis R. Rodriguez
  2009-07-29 21:20 ` [PATCH 2/2] mac80211: redefine usage of the mac80211 workqueue Luis R. Rodriguez
  2009-07-31  6:24 ` [PATCH 1/2] at76c50x-usb: remove unneeded flush_workqueue() at usb disconnect Kalle Valo
  0 siblings, 2 replies; 4+ messages in thread
From: Luis R. Rodriguez @ 2009-07-29 21:20 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Luis R. Rodriguez, Kalle Valo

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.

Cc: Kalle Valo <kalle.valo@iki.fi>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
 drivers/net/wireless/at76c50x-usb.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index f46e2b3..aff09a1 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)
 
 	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);
-- 
1.6.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-31 18:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-29 21:20 [PATCH 1/2] at76c50x-usb: remove unneeded flush_workqueue() at usb disconnect Luis R. Rodriguez
2009-07-29 21:20 ` [PATCH 2/2] mac80211: redefine usage of the mac80211 workqueue Luis R. Rodriguez
2009-07-31  6:24 ` [PATCH 1/2] at76c50x-usb: remove unneeded flush_workqueue() at usb disconnect Kalle Valo
2009-07-31 18:57   ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).