提交 c7ddaa2e 编写于 作者: A Allen 提交者: Ulf Hansson

mmc-host: mxcmmc: 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>
Reviewed-by: NShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 15e8c7d9
......@@ -1165,9 +1165,7 @@ static int mxcmci_probe(struct platform_device *pdev)
goto out_free_dma;
}
init_timer(&host->watchdog);
host->watchdog.function = &mxcmci_watchdog;
host->watchdog.data = (unsigned long)mmc;
setup_timer(&host->watchdog, &mxcmci_watchdog, (unsigned long)mmc);
mmc_add_host(mmc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册