]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
omap3_mmc: Encapsulate twl4030 under option CONFIG_TWL4030_POWER
authorVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Nov 2009 11:06:05 +0000 (16:36 +0530)
committerTom Rix <Tom.Rix@windriver.com>
Fri, 27 Nov 2009 22:26:18 +0000 (16:26 -0600)
Fixes the build/compilation error if we try to re-use the omap3_mmc code
without TWL4030_POWER.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
drivers/mmc/omap3_mmc.c

index 513dd25b0d6d1a1c74961c7d261ae0129c381716..96c0e653ba667d0976cdb7556ce2e3b3a7ee239b 100644 (file)
@@ -63,7 +63,9 @@ unsigned char mmc_board_init(void)
 {
        t2_t *t2_base = (t2_t *)T2_BASE;
 
+#if defined(CONFIG_TWL4030_POWER)
        twl4030_power_mmc_init();
+#endif
 
        writel(readl(&t2_base->pbias_lite) | PBIASLITEPWRDNZ1 |
                PBIASSPEEDCTRL0 | PBIASLITEPWRDNZ0,