diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/mac80211.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/mac80211.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/mac80211.c b/drivers/net/wireless/iwlwifi/dvm/mac80211.c index b55181275fd0..c2f03ecd4bf8 100644 --- a/drivers/net/wireless/iwlwifi/dvm/mac80211.c +++ b/drivers/net/wireless/iwlwifi/dvm/mac80211.c | |||
@@ -459,14 +459,12 @@ static int iwlagn_mac_resume(struct ieee80211_hw *hw) | |||
459 | 459 | ||
460 | base = priv->device_pointers.error_event_table; | 460 | base = priv->device_pointers.error_event_table; |
461 | if (iwlagn_hw_valid_rtc_data_addr(base)) { | 461 | if (iwlagn_hw_valid_rtc_data_addr(base)) { |
462 | spin_lock_irqsave(&priv->trans->reg_lock, flags); | 462 | if (iwl_trans_grab_nic_access(priv->trans, true, &flags)) { |
463 | if (iwl_trans_grab_nic_access(priv->trans, true)) { | ||
464 | iwl_write32(priv->trans, HBUS_TARG_MEM_RADDR, base); | 463 | iwl_write32(priv->trans, HBUS_TARG_MEM_RADDR, base); |
465 | status = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); | 464 | status = iwl_read32(priv->trans, HBUS_TARG_MEM_RDAT); |
466 | iwl_trans_release_nic_access(priv->trans); | 465 | iwl_trans_release_nic_access(priv->trans, &flags); |
467 | ret = 0; | 466 | ret = 0; |
468 | } | 467 | } |
469 | spin_unlock_irqrestore(&priv->trans->reg_lock, flags); | ||
470 | 468 | ||
471 | #ifdef CONFIG_IWLWIFI_DEBUGFS | 469 | #ifdef CONFIG_IWLWIFI_DEBUGFS |
472 | if (ret == 0) { | 470 | if (ret == 0) { |