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>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user