summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen <allen.lkml@gmail.com>2017-09-22 15:07:24 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2017-10-30 13:45:54 +0300
commit4ffd3aaf37b785536810b3783ce0f58d52e9a57e (patch)
treefd844f2095ee795c11bce24a6ee4a4fc61f9127d
parentec32e106a112e79385e4c78a7aede39dc34cad6a (diff)
downloadlinux-4ffd3aaf37b785536810b3783ce0f58d52e9a57e.tar.xz
mmc-host: via: 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>
-rw-r--r--drivers/mmc/host/via-sdmmc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/host/via-sdmmc.c b/drivers/mmc/host/via-sdmmc.c
index a838bf5480d8..a8c97b6e59dc 100644
--- a/drivers/mmc/host/via-sdmmc.c
+++ b/drivers/mmc/host/via-sdmmc.c
@@ -1036,9 +1036,7 @@ static void via_init_mmc_host(struct via_crdr_mmc_host *host)
u32 lenreg;
u32 status;
- init_timer(&host->timer);
- host->timer.data = (unsigned long)host;
- host->timer.function = via_sdc_timeout;
+ setup_timer(&host->timer, via_sdc_timeout, (unsigned long)host);
spin_lock_init(&host->lock);