summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/st/cw1200/main.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-10-24 02:29:00 -0700
committerKalle Valo <kvalo@codeaurora.org>2017-10-27 10:46:24 +0300
commite3dcf8bbeb0c58df475cad58e2dc267a5c02ae20 (patch)
treef1933a53912657d24eb7ccdc846df29513676623 /drivers/net/wireless/st/cw1200/main.c
parent3e79202b11526f6662d73501877cc18cf95b2ff8 (diff)
cw1200: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Solomon Peachy <pizza@shaftnet.org> Cc: Kalle Valo <kvalo@codeaurora.org> Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/st/cw1200/main.c')
-rw-r--r--drivers/net/wireless/st/cw1200/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/st/cw1200/main.c b/drivers/net/wireless/st/cw1200/main.c
index dc478cedbde0..a186d1df1f29 100644
--- a/drivers/net/wireless/st/cw1200/main.c
+++ b/drivers/net/wireless/st/cw1200/main.c
@@ -373,8 +373,7 @@ static struct ieee80211_hw *cw1200_init_common(const u8 *macaddr,
INIT_WORK(&priv->update_filtering_work, cw1200_update_filtering_work);
INIT_WORK(&priv->set_beacon_wakeup_period_work,
cw1200_set_beacon_wakeup_period_work);
- setup_timer(&priv->mcast_timeout, cw1200_mcast_timeout,
- (unsigned long)priv);
+ timer_setup(&priv->mcast_timeout, cw1200_mcast_timeout, 0);
if (cw1200_queue_stats_init(&priv->tx_queue_stats,
CW1200_LINK_ID_MAX,