Commit 27dd0852 authored by Allen Pais's avatar Allen Pais Committed by David S. Miller

drivers: net: brcm80211: use setup_timer() helper.

Use setup_timer function instead of initializing timer with the
    function and data fields.
Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 334e4a7d
...@@ -3260,9 +3260,8 @@ static void brcmf_init_escan(struct brcmf_cfg80211_info *cfg) ...@@ -3260,9 +3260,8 @@ static void brcmf_init_escan(struct brcmf_cfg80211_info *cfg)
brcmf_cfg80211_escan_handler); brcmf_cfg80211_escan_handler);
cfg->escan_info.escan_state = WL_ESCAN_STATE_IDLE; cfg->escan_info.escan_state = WL_ESCAN_STATE_IDLE;
/* Init scan_timeout timer */ /* Init scan_timeout timer */
init_timer(&cfg->escan_timeout); setup_timer(&cfg->escan_timeout, brcmf_escan_timeout,
cfg->escan_timeout.data = (unsigned long) cfg; (unsigned long)cfg);
cfg->escan_timeout.function = brcmf_escan_timeout;
INIT_WORK(&cfg->escan_timeout_work, INIT_WORK(&cfg->escan_timeout_work,
brcmf_cfg80211_escan_timeout_worker); brcmf_cfg80211_escan_timeout_worker);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment