summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2012-11-14 13:28:50 +0100
committerJohannes Berg <johannes.berg@intel.com>2012-11-19 15:01:53 +0100
commitc61259858d685caf865e9819e3d3062a0865d93c (patch)
treefebc1d9cb92e462a1b397f7107ecc561460e1ce3 /drivers/net/wireless/iwlwifi
parentiwlwifi: rename functions in transport layer (diff)
downloadlinux-c61259858d685caf865e9819e3d3062a0865d93c.tar.xz
linux-c61259858d685caf865e9819e3d3062a0865d93c.zip
iwlwifi: init the replenish work in rx_init
This is its natural place Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/pcie/trans.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c
index 1eed9882b7b8..a2cdb934df61 100644
--- a/drivers/net/wireless/iwlwifi/pcie/trans.c
+++ b/drivers/net/wireless/iwlwifi/pcie/trans.c
@@ -203,6 +203,9 @@ static int iwl_rx_init(struct iwl_trans *trans)
INIT_LIST_HEAD(&rxq->rx_free);
INIT_LIST_HEAD(&rxq->rx_used);
+ INIT_WORK(&trans_pcie->rx_replenish,
+ iwl_pcie_rx_replenish_work);
+
iwl_trans_rxq_free_rx_bufs(trans);
for (i = 0; i < RX_QUEUE_SIZE; i++)
@@ -1449,8 +1452,6 @@ static int iwl_trans_pcie_start_hw(struct iwl_trans *trans)
goto error;
}
- INIT_WORK(&trans_pcie->rx_replenish,
- iwl_pcie_rx_replenish_work);
trans_pcie->irq_requested = true;
}