diff options
author | Zhu, Yi <yi.zhu@intel.com> | 2008-12-05 10:58:40 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-12 13:48:21 -0500 |
commit | 73d7b5acc461bdc99e0135779d15e1874c6e00a6 (patch) | |
tree | 30c62a728e57cc83f938a2a69a0188d624c42793 /drivers/net/wireless/iwlwifi/iwl-rx.c | |
parent | 42802d71dd14dd0e435a8da59d817d0c6f8a2866 (diff) |
iwlwifi: iwl_poll_{direct_}bit cleanup
The patch merges implementation of iwl_poll_bit() and
iwl_poll_direct_bit() by letting the latter be a special case of
the former.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-rx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index 6dd16c7b5d93..1938e6d5026a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
@@ -467,10 +467,8 @@ int iwl_rxq_stop(struct iwl_priv *priv) | |||
467 | 467 | ||
468 | /* stop Rx DMA */ | 468 | /* stop Rx DMA */ |
469 | iwl_write_direct32(priv, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); | 469 | iwl_write_direct32(priv, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); |
470 | ret = iwl_poll_direct_bit(priv, FH_MEM_RSSR_RX_STATUS_REG, | 470 | iwl_poll_direct_bit(priv, FH_MEM_RSSR_RX_STATUS_REG, |
471 | (1 << 24), 1000); | 471 | FH_RSSR_CHNL0_RX_STATUS_CHNL_IDLE, 1000); |
472 | if (ret < 0) | ||
473 | IWL_ERROR("Can't stop Rx DMA.\n"); | ||
474 | 472 | ||
475 | iwl_release_nic_access(priv); | 473 | iwl_release_nic_access(priv); |
476 | spin_unlock_irqrestore(&priv->lock, flags); | 474 | spin_unlock_irqrestore(&priv->lock, flags); |