mmc-host: mxcmmc: use setup_timer() helper.
authorAllen <allen.lkml@gmail.com>
Fri, 22 Sep 2017 12:07:26 +0000 (17:37 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 Oct 2017 10:45:55 +0000 (11:45 +0100)
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>
drivers/mmc/host/mxcmmc.c

index 1d5418e..328484b 100644 (file)
@@ -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);