diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-08-05 07:10:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-22 14:45:57 -0400 |
commit | 84c87dc86eaf5c3f70d6c85fac832b277b1f71c7 (patch) | |
tree | eed17db69a94517d35b3e789272b9d3918d38812 /drivers/net/wireless/ath/ath9k/ar9003_hw.c | |
parent | af2bf4b4ee58d262a9a5c1d4ce6f81835058f8b5 (diff) |
ath9k: remove ->config_pci_powersave() redundant argument
We always call ->config_pci_powersave() with both restore and power_off
arguments equal to 0 or both equal to 1, so merge them into one
argument.
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/ar9003_hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_hw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_hw.c b/drivers/net/wireless/ath/ath9k/ar9003_hw.c index ad2bb2bf4e8a..e3d58bdb5215 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_hw.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_hw.c | |||
@@ -516,14 +516,13 @@ static void ar9003_hw_init_mode_gain_regs(struct ath_hw *ah) | |||
516 | * register as the other analog registers. Hence the 9 writes. | 516 | * register as the other analog registers. Hence the 9 writes. |
517 | */ | 517 | */ |
518 | static void ar9003_hw_configpcipowersave(struct ath_hw *ah, | 518 | static void ar9003_hw_configpcipowersave(struct ath_hw *ah, |
519 | int restore, | 519 | bool power_off) |
520 | int power_off) | ||
521 | { | 520 | { |
522 | if (ah->is_pciexpress != true || ah->aspm_enabled != true) | 521 | if (ah->is_pciexpress != true || ah->aspm_enabled != true) |
523 | return; | 522 | return; |
524 | 523 | ||
525 | /* Nothing to do on restore for 11N */ | 524 | /* Nothing to do on restore for 11N */ |
526 | if (!restore) { | 525 | if (!power_off /* !restore */) { |
527 | /* set bit 19 to allow forcing of pcie core into L1 state */ | 526 | /* set bit 19 to allow forcing of pcie core into L1 state */ |
528 | REG_SET_BIT(ah, AR_PCIE_PM_CTRL, AR_PCIE_PM_CTRL_ENA); | 527 | REG_SET_BIT(ah, AR_PCIE_PM_CTRL, AR_PCIE_PM_CTRL_ENA); |
529 | 528 | ||