diff options
author | Allen <allen.lkml@gmail.com> | 2017-09-22 14:07:23 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-10-30 11:45:53 +0100 |
commit | ec32e106a112e79385e4c78a7aede39dc34cad6a (patch) | |
tree | d9a76be9fb238c5b19c44eef41d6d72acc557a8c | |
parent | mmc: rtsx: fix tuning fail on gen3 PCI-Express (diff) | |
download | linux-ec32e106a112e79385e4c78a7aede39dc34cad6a.tar.xz linux-ec32e106a112e79385e4c78a7aede39dc34cad6a.zip |
mmc-host: wbsd: 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/wbsd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c index 546aaf8d1507..499852d8f706 100644 --- a/drivers/mmc/host/wbsd.c +++ b/drivers/mmc/host/wbsd.c @@ -1224,9 +1224,8 @@ static int wbsd_alloc_mmc(struct device *dev) /* * Set up timers */ - init_timer(&host->ignore_timer); - host->ignore_timer.data = (unsigned long)host; - host->ignore_timer.function = wbsd_reset_ignore; + setup_timer(&host->ignore_timer, wbsd_reset_ignore, + (unsigned long)host); /* * Maximum number of segments. Worst case is one sector per segment |