diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index bb7936090b91..fa58a32227f5 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -117,7 +117,7 @@ static const struct ath_ps_ops ath9k_ps_ops = {  static void ath9k_iowrite32(void *hw_priv, u32 val, u32 reg_offset)  { -	struct ath_hw *ah = (struct ath_hw *) hw_priv; +	struct ath_hw *ah = hw_priv;  	struct ath_common *common = ath9k_hw_common(ah);  	struct ath_softc *sc = (struct ath_softc *) common->priv; @@ -132,7 +132,7 @@ static void ath9k_iowrite32(void *hw_priv, u32 val, u32 reg_offset)  static unsigned int ath9k_ioread32(void *hw_priv, u32 reg_offset)  { -	struct ath_hw *ah = (struct ath_hw *) hw_priv; +	struct ath_hw *ah = hw_priv;  	struct ath_common *common = ath9k_hw_common(ah);  	struct ath_softc *sc = (struct ath_softc *) common->priv;  	u32 val; @@ -172,7 +172,7 @@ static unsigned int __ath9k_reg_rmw(struct ath_softc *sc, u32 reg_offset,  static unsigned int ath9k_reg_rmw(void *hw_priv, u32 reg_offset, u32 set, u32 clr)  { -	struct ath_hw *ah = (struct ath_hw *) hw_priv; +	struct ath_hw *ah = hw_priv;  	struct ath_common *common = ath9k_hw_common(ah);  	struct ath_softc *sc = (struct ath_softc *) common->priv;  	unsigned long uninitialized_var(flags); @@ -275,7 +275,7 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd,  	if (!dd->dd_desc)  		return -ENOMEM; -	ds = (u8 *) dd->dd_desc; +	ds = dd->dd_desc;  	ath_dbg(common, CONFIG, "%s DMA map: %p (%u) -> %llx (%u)\n",  		name, ds, (u32) dd->dd_desc_len,  		ito64(dd->dd_desc_paddr), /*XXX*/(u32) dd->dd_desc_len); @@ -369,7 +369,7 @@ static void ath9k_init_misc(struct ath_softc *sc)  	struct ath_common *common = ath9k_hw_common(sc->sc_ah);  	int i = 0; -	setup_timer(&common->ani.timer, ath_ani_calibrate, (unsigned long)sc); +	timer_setup(&common->ani.timer, ath_ani_calibrate, 0);  	common->last_rssi = ATH_RSSI_DUMMY_MARKER;  	memcpy(common->bssidmask, ath_bcast_mac, ETH_ALEN); @@ -678,7 +678,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc,  	tasklet_init(&sc->bcon_tasklet, ath9k_beacon_tasklet,  		     (unsigned long)sc); -	setup_timer(&sc->sleep_timer, ath_ps_full_sleep, (unsigned long)sc); +	timer_setup(&sc->sleep_timer, ath_ps_full_sleep, 0);  	INIT_WORK(&sc->hw_reset_work, ath_reset_work);  	INIT_WORK(&sc->paprd_work, ath_paprd_calibrate);  	INIT_DELAYED_WORK(&sc->hw_pll_work, ath_hw_pll_work);  |