diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/gpio.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/gpio.c | 14 | 
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c index ddb28861e7fe..b457e52dd365 100644 --- a/drivers/net/wireless/ath/ath9k/gpio.c +++ b/drivers/net/wireless/ath/ath9k/gpio.c @@ -191,9 +191,9 @@ static void ath_mci_ftp_adjust(struct ath_softc *sc)   * 45ms, bt traffic will be given priority during 55% of this   * period while wlan gets remaining 45%   */ -static void ath_btcoex_period_timer(unsigned long data) +static void ath_btcoex_period_timer(struct timer_list *t)  { -	struct ath_softc *sc = (struct ath_softc *) data; +	struct ath_softc *sc = from_timer(sc, t, btcoex.period_timer);  	struct ath_hw *ah = sc->sc_ah;  	struct ath_btcoex *btcoex = &sc->btcoex;  	enum ath_stomp_type stomp_type; @@ -252,9 +252,9 @@ skip_hw_wakeup:   * Generic tsf based hw timer which configures weight   * registers to time slice between wlan and bt traffic   */ -static void ath_btcoex_no_stomp_timer(unsigned long arg) +static void ath_btcoex_no_stomp_timer(struct timer_list *t)  { -	struct ath_softc *sc = (struct ath_softc *)arg; +	struct ath_softc *sc = from_timer(sc, t, btcoex.no_stomp_timer);  	struct ath_hw *ah = sc->sc_ah;  	struct ath_btcoex *btcoex = &sc->btcoex; @@ -284,10 +284,8 @@ static void ath_init_btcoex_timer(struct ath_softc *sc)  				   btcoex->btcoex_period / 100;  	btcoex->bt_stomp_type = ATH_BTCOEX_STOMP_LOW; -	setup_timer(&btcoex->period_timer, ath_btcoex_period_timer, -			(unsigned long) sc); -	setup_timer(&btcoex->no_stomp_timer, ath_btcoex_no_stomp_timer, -			(unsigned long) sc); +	timer_setup(&btcoex->period_timer, ath_btcoex_period_timer, 0); +	timer_setup(&btcoex->no_stomp_timer, ath_btcoex_no_stomp_timer, 0);  	spin_lock_init(&btcoex->btcoex_lock);  }  |