iwlwifi: init the replenish work in rx_init
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 14 Nov 2012 12:28:50 +0000 (14:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Nov 2012 14:01:53 +0000 (15:01 +0100)
This is its natural place

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c

index 1eed9882b7b864351006df2744f4cb8473e70268..a2cdb934df6183f7df05cbaf01f8e99d407e42b3 100644 (file)
@@ -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;
        }