提交 30ac4076 编写于 作者: A Allen Pais 提交者: Kalle Valo

brcmfmac: use setup_timer() helper

Use setup_timer function instead of initializing timer with the
function and data fields.
Signed-off-by: NAllen Pais <allen.lkml@gmail.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 e9a3846a
...@@ -4144,10 +4144,8 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev) ...@@ -4144,10 +4144,8 @@ struct brcmf_sdio *brcmf_sdio_probe(struct brcmf_sdio_dev *sdiodev)
init_waitqueue_head(&bus->dcmd_resp_wait); init_waitqueue_head(&bus->dcmd_resp_wait);
/* Set up the watchdog timer */ /* Set up the watchdog timer */
init_timer(&bus->timer); setup_timer(&bus->timer, brcmf_sdio_watchdog,
bus->timer.data = (unsigned long)bus; (unsigned long)bus);
bus->timer.function = brcmf_sdio_watchdog;
/* Initialize watchdog thread */ /* Initialize watchdog thread */
init_completion(&bus->watchdog_wait); init_completion(&bus->watchdog_wait);
bus->watchdog_tsk = kthread_run(brcmf_sdio_watchdog_thread, bus->watchdog_tsk = kthread_run(brcmf_sdio_watchdog_thread,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册