Skip to content

Commit

Permalink
mmc: msm_sdcc: Change initialization order of busclk_timer in probe
Browse files Browse the repository at this point in the history
Intialize busclk_timer before it is accessed in probe.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Sahitya Tummala authored and Chris Ball committed Oct 26, 2011
1 parent 4a268e0 commit 19207f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/mmc/host/msm_sdcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,10 @@ msmsdcc_probe(struct platform_device *pdev)
host->plat = plat;
host->mmc = mmc;
host->curr.cmd = NULL;
init_timer(&host->busclk_timer);
host->busclk_timer.data = (unsigned long) host;
host->busclk_timer.function = msmsdcc_busclk_expired;


host->cmdpoll = 1;

Expand Down Expand Up @@ -1335,10 +1339,6 @@ msmsdcc_probe(struct platform_device *pdev)
host->eject = !host->oldstat;
}

init_timer(&host->busclk_timer);
host->busclk_timer.data = (unsigned long) host;
host->busclk_timer.function = msmsdcc_busclk_expired;

ret = request_irq(cmd_irqres->start, msmsdcc_irq, IRQF_SHARED,
DRIVER_NAME " (cmd)", host);
if (ret)
Expand Down

0 comments on commit 19207f0

Please sign in to comment.