diff options
author | Allen <allen.lkml@gmail.com> | 2017-09-22 14:07:24 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-10-30 11:45:54 +0100 |
commit | 4ffd3aaf37b785536810b3783ce0f58d52e9a57e (patch) | |
tree | fd844f2095ee795c11bce24a6ee4a4fc61f9127d | |
parent | mmc-host: wbsd: use setup_timer() helper. (diff) | |
download | linux-4ffd3aaf37b785536810b3783ce0f58d52e9a57e.tar.xz linux-4ffd3aaf37b785536810b3783ce0f58d52e9a57e.zip |
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.c | 4 |
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); |