Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7ddaa2e authored by Allen's avatar Allen Committed by Ulf Hansson
Browse files

mmc-host: mxcmmc: use setup_timer() helper.



Use setup_timer function instead of initializing timer with the
   function and data fields.

Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Reviewed-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 15e8c7d9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1165,9 +1165,7 @@ static int mxcmci_probe(struct platform_device *pdev)
			goto out_free_dma;
	}

	init_timer(&host->watchdog);
	host->watchdog.function = &mxcmci_watchdog;
	host->watchdog.data = (unsigned long)mmc;
	setup_timer(&host->watchdog, &mxcmci_watchdog, (unsigned long)mmc);

	mmc_add_host(mmc);