diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-08-05 13:10:33 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-22 14:45:57 -0400 |
commit | 3b9cf1be8c4440ae0dd6809bcf3ab6e0e6c54573 (patch) | |
tree | b5b6b29b4c3db5db99f513a683ec8bae8a43bbf3 /drivers/net/wireless/ath/ath9k/hw-ops.h | |
parent | 84c87dc86eaf5c3f70d6c85fac832b277b1f71c7 (diff) | |
download | blackbird-op-linux-3b9cf1be8c4440ae0dd6809bcf3ab6e0e6c54573.tar.gz blackbird-op-linux-3b9cf1be8c4440ae0dd6809bcf3ab6e0e6c54573.zip |
ath9k: merge common ->config_pci_powersave() checks
Move common checks into wrapper function. Since ASPM can be only enabled
on PCIe devices ->is_pciexpress check is unneeded.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw-ops.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw-ops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw-ops.h b/drivers/net/wireless/ath/ath9k/hw-ops.h index 8c123857c9d7..dd9003ee123b 100644 --- a/drivers/net/wireless/ath/ath9k/hw-ops.h +++ b/drivers/net/wireless/ath/ath9k/hw-ops.h @@ -24,6 +24,9 @@ static inline void ath9k_hw_configpcipowersave(struct ath_hw *ah, bool power_off) { + if (ah->aspm_enabled != true) + return; + ath9k_hw_ops(ah)->config_pci_powersave(ah, power_off); } |