diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-08-03 15:24:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:44:29 -0400 |
commit | 50aca25b5824f29fa94417abadf82ee7f0c7f816 (patch) | |
tree | 5982f520e8acbb58f3b0aaa599a3a19f39dd3c33 /drivers | |
parent | f9d4a668035b0bf65d1c8d5eba680201112f7c3d (diff) |
ath9k: rename ath9k_hw_newstate() to ath9k_hw_init_defaults()
This reflects better what we are actually doing there.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 4f3d7bf73c52..6aee57065c7b 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -437,7 +437,7 @@ static void ath9k_hw_set_defaults(struct ath_hw *ah) | |||
437 | ah->config.serialize_regmode = SER_REG_MODE_AUTO; | 437 | ah->config.serialize_regmode = SER_REG_MODE_AUTO; |
438 | } | 438 | } |
439 | 439 | ||
440 | static void ath9k_hw_newstate(struct ath_hw *ah) | 440 | static void ath9k_hw_init_defaults(struct ath_hw *ah) |
441 | { | 441 | { |
442 | ah->hw_version.magic = AR5416_MAGIC; | 442 | ah->hw_version.magic = AR5416_MAGIC; |
443 | ah->regulatory.country_code = CTRY_DEFAULT; | 443 | ah->regulatory.country_code = CTRY_DEFAULT; |
@@ -654,7 +654,7 @@ int ath9k_hw_attach(struct ath_hw *ah) | |||
654 | goto bad; | 654 | goto bad; |
655 | } | 655 | } |
656 | 656 | ||
657 | ath9k_hw_newstate(ah); | 657 | ath9k_hw_init_defaults(ah); |
658 | ath9k_hw_set_defaults(ah); | 658 | ath9k_hw_set_defaults(ah); |
659 | 659 | ||
660 | if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_POWER_ON)) { | 660 | if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_POWER_ON)) { |