mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 03:11:46 +00:00
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>
This commit is contained in:
parent
563be8b603
commit
ec32e106a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user