summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/wbsd.c
diff options
context:
space:
mode:
authorAllen <allen.lkml@gmail.com>2017-09-22 15:07:23 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2017-10-30 13:45:53 +0300
commitec32e106a112e79385e4c78a7aede39dc34cad6a (patch)
treed9a76be9fb238c5b19c44eef41d6d72acc557a8c /drivers/mmc/host/wbsd.c
parent563be8b60324f8947e9c71ec81a8cb67ea2f2127 (diff)
downloadlinux-ec32e106a112e79385e4c78a7aede39dc34cad6a.tar.xz
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>
Diffstat (limited to 'drivers/mmc/host/wbsd.c')
-rw-r--r--drivers/mmc/host/wbsd.c5
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