summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2014-06-17 12:41:04 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2014-07-14 16:03:21 +0300
commit958e1be848c92006ee4b95190d3725daf3a70034 (patch)
tree7aff73179d64ceb9d52d8e5e939b5486916ab5bb
parentb056397e98a9d7fb8fed9f5c837461f3dd8b0132 (diff)
downloadop-kernel-dev-958e1be848c92006ee4b95190d3725daf3a70034.zip
op-kernel-dev-958e1be848c92006ee4b95190d3725daf3a70034.tar.gz
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 ed086ea..a0400a1 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)
return status;
/* Configure target refclk_hz */
- status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz, ar->hw.refclk_hz);
- if (status)
- return status;
+ if (ar->hw.refclk_hz != 0) {
+ status = ath6kl_bmi_write_hi32(ar, hi_refclk_hz,
+ ar->hw.refclk_hz);
+ if (status)
+ return status;
+ }
return 0;
}
OpenPOWER on IntegriCloud