mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 10:59:18 -04:00
mmc-host: mxcmmc: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais <allen.lkml@gmail.com> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user