Skip to content

Commit

Permalink
iwlwifi: init the replenish work in rx_init
Browse files Browse the repository at this point in the history
This is its natural place

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Emmanuel Grumbach authored and Johannes Berg committed Nov 19, 2012
1 parent 990aa6d commit c612598
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/wireless/iwlwifi/pcie/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit c612598

Please sign in to comment.