summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach2011-06-21 13:25:45 +0200
committerWey-Yi Guy2011-07-01 16:57:45 +0200
commita0f6b0a211fbdfbae603ffa434f0d9e691e55ab9 (patch)
tree61ecef92736d4a15dfe1a18c1fe5f7667761a0dc /drivers/net/wireless/iwlwifi/iwl-agn.c
parentiwlagn: introduce transport layer and implement rx_init (diff)
downloadkernel-qcow2-linux-a0f6b0a211fbdfbae603ffa434f0d9e691e55ab9.tar.gz
kernel-qcow2-linux-a0f6b0a211fbdfbae603ffa434f0d9e691e55ab9.tar.xz
kernel-qcow2-linux-a0f6b0a211fbdfbae603ffa434f0d9e691e55ab9.zip
iwlagn: add rx_free to transport layer
The transport layer ness to release all rx ressources. This function is an API for it. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index b06571871580..f9127e7f36c7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -3718,8 +3718,7 @@ void __devexit iwl_remove(struct iwl_priv * priv)
iwl_dealloc_ucode(priv);
- if (priv->rxq.bd)
- iwlagn_rx_queue_free(priv, &priv->rxq);
+ priv->trans.ops->rx_free(priv);
iwlagn_hw_txq_ctx_free(priv);
iwl_eeprom_free(priv);