mmc: msm_sdcc: Change initialization order of busclk_timer in probe
authorSahitya Tummala <stummala@codeaurora.org>
Mon, 2 May 2011 12:40:01 +0000 (18:10 +0530)
committerChris Ball <cjb@laptop.org>
Wed, 26 Oct 2011 19:43:37 +0000 (15:43 -0400)
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>
drivers/mmc/host/msm_sdcc.c

index c405e93335e2676a282d5dfb957b06546cb0da41..a835ac0269e077143570c276edc2aa7040a9d1b1 100644 (file)
@@ -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;
 
@@ -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)