diff options
author | Allen <allen.lkml@gmail.com> | 2017-09-22 15:07:26 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-10-30 13:45:55 +0300 |
commit | c7ddaa2ec992a096905d897fc00ae4901a912f2f (patch) | |
tree | 0aa2d7f66f4969c6756b82b5aff20e4f1cf5f817 /drivers/mmc/host/mxcmmc.c | |
parent | 15e8c7d9c17b3f2eb6d2547658582a67e15a93ac (diff) | |
download | linux-c7ddaa2ec992a096905d897fc00ae4901a912f2f.tar.xz |
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>
Diffstat (limited to 'drivers/mmc/host/mxcmmc.c')
-rw-r--r-- | drivers/mmc/host/mxcmmc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index 1d5418e4efae..328484b96620 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c @@ -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); |