From: Mohammed Shafi Shajakhan Date: Wed, 27 Jun 2012 14:30:26 +0000 (+0530) Subject: ath9k_hw: make use of the wrapper to check for MCI init X-Git-Tag: upstream/snapshot3+hdmi~6997^2~57^2~217 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=812944891c598300afcc5628905d775019f25310;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ath9k_hw: make use of the wrapper to check for MCI init ath9k_hw_mci_is_enabled wrapper also takes care of ATH9K_HW_CAP_MCI being set for the AR9462 under test. Signed-off-by: Mohammed Shafi Shajakhan Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c index 26032cb..9ae6a4d 100644 --- a/drivers/net/wireless/ath/ath9k/gpio.c +++ b/drivers/net/wireless/ath/ath9k/gpio.c @@ -416,7 +416,7 @@ int ath9k_init_btcoex(struct ath_softc *sc) txq = sc->tx.txq_map[WME_AC_BE]; ath9k_hw_init_btcoex_hw(sc->sc_ah, txq->axq_qnum); sc->btcoex.bt_stomp_type = ATH_BTCOEX_STOMP_LOW; - if (AR_SREV_9462(ah)) { + if (ath9k_hw_mci_is_enabled(ah)) { sc->btcoex.duty_cycle = ATH_BTCOEX_DEF_DUTY_CYCLE; INIT_LIST_HEAD(&sc->btcoex.mci.info);