From: Kalle Valo Date: Tue, 17 Jun 2014 09:41:04 +0000 (+0300) Subject: ath6kl: don't set hi_refclk_hz if hardware version doesn't need it X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=958e1be848c92006ee4b95190d3725daf3a70034;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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) 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; }