aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2014-06-17 05:41:04 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2014-07-14 09:03:21 -0400
commit958e1be848c92006ee4b95190d3725daf3a70034 (patch)
tree7aff73179d64ceb9d52d8e5e939b5486916ab5bb
parentb056397e98a9d7fb8fed9f5c837461f3dd8b0132 (diff)
ath6kl: don't set hi_refclk_hz if hardware version doesn't need it
Needed for ar6004 hw3.0 support. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath6kl/init.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c
index ed086ead2601..a0400a12b592 100644
--- a/drivers/net/wireless/ath/ath6kl/init.c
+++ b/drivers/net/wireless/ath/ath6kl/init.c
@@ -624,9 +624,12 @@ int ath6kl_configure_target(struct ath6kl *ar)
624 return status; 624 return status;
625 625
626 /* Configure target refclk_hz */ 626 /* Configure target refclk_hz */
627 status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz, ar->hw.refclk_hz); 627 if (ar->hw.refclk_hz != 0) {
628 if (status) 628 status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz,
629 return status; 629 ar->hw.refclk_hz);
630 if (status)
631 return status;
632 }
630 633
631 return 0; 634 return 0;
632} 635}