diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-09-09 21:02:34 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:24 -0400 |
commit | 8c77a5694cd31eb2291948dd1bfe700a199be8e7 (patch) | |
tree | 8190c50891fc29dcc8c28999fe86277301968e42 /drivers/net/wireless/ath/ath9k/main.c | |
parent | 1adc93c832726c9de4a43445c008a7f17549390b (diff) | |
download | lwn-8c77a5694cd31eb2291948dd1bfe700a199be8e7.tar.gz lwn-8c77a5694cd31eb2291948dd1bfe700a199be8e7.zip |
ath9k: move ath9k_hw_setpower() to main.c
And we make it static.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 9f9ac5b52acb..d0637a65f9a9 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -243,6 +243,18 @@ static struct ath9k_channel *ath_get_curchannel(struct ath_softc *sc, return channel; } +static bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode) +{ + unsigned long flags; + bool ret; + + spin_lock_irqsave(&ah->ah_sc->sc_pm_lock, flags); + ret = ath9k_hw_setpower_nolock(ah, mode); + spin_unlock_irqrestore(&ah->ah_sc->sc_pm_lock, flags); + + return ret; +} + void ath9k_ps_wakeup(struct ath_softc *sc) { unsigned long flags; |