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>
This commit is contained in:
Allen 2017-09-22 17:37:24 +05:30 committed by Ulf Hansson
parent ec32e106a1
commit 4ffd3aaf37
1 changed files with 1 additions and 3 deletions

View File

@ -1036,9 +1036,7 @@ static void via_init_mmc_host(struct via_crdr_mmc_host *host)
u32 lenreg; u32 lenreg;
u32 status; u32 status;
init_timer(&host->timer); setup_timer(&host->timer, via_sdc_timeout, (unsigned long)host);
host->timer.data = (unsigned long)host;
host->timer.function = via_sdc_timeout;
spin_lock_init(&host->lock); spin_lock_init(&host->lock);