From: Vaibhav Hiremath Date: Mon, 23 Nov 2009 11:06:05 +0000 (+0530) Subject: omap3_mmc: Encapsulate twl4030 under option CONFIG_TWL4030_POWER X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7c15121f4007751af8c45c978c4ad7d6c5ff11f9;p=project%2Fbcm63xx%2Fu-boot.git omap3_mmc: Encapsulate twl4030 under option CONFIG_TWL4030_POWER Fixes the build/compilation error if we try to re-use the omap3_mmc code without TWL4030_POWER. Signed-off-by: Vaibhav Hiremath --- diff --git a/drivers/mmc/omap3_mmc.c b/drivers/mmc/omap3_mmc.c index 513dd25b0d..96c0e653ba 100644 --- a/drivers/mmc/omap3_mmc.c +++ b/drivers/mmc/omap3_mmc.c @@ -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,