diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-06 16:30:46 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-07 13:51:51 -0500 |
commit | 0dde86b2f2999a25dcc62a27cb768c35a418890a (patch) | |
tree | 358fb88d4dc35df5d1476031b0022b64a9818ea3 /drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c | |
parent | 496bab39b5a8ef9c916cdb961dec5bbb5ba263f7 (diff) |
iwlwifi: remove shadow_reg_enable from hw_params
There's no need to copy shadow_reg_enable into
hw_params since it is a pure hardware parameter
that will never change, we can access it from
the config directly.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c b/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c index e8d3129d5bde..911a9f113f1f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c | |||
@@ -141,7 +141,7 @@ void iwl_rx_queue_update_write_ptr(struct iwl_trans *trans, | |||
141 | if (q->need_update == 0) | 141 | if (q->need_update == 0) |
142 | goto exit_unlock; | 142 | goto exit_unlock; |
143 | 143 | ||
144 | if (hw_params(trans).shadow_reg_enable) { | 144 | if (cfg(trans)->base_params->shadow_reg_enable) { |
145 | /* shadow register enabled */ | 145 | /* shadow register enabled */ |
146 | /* Device expects a multiple of 8 */ | 146 | /* Device expects a multiple of 8 */ |
147 | q->write_actual = (q->write & ~0x7); | 147 | q->write_actual = (q->write & ~0x7); |