[U-Boot] [PATCH] omap3_mmc: Encapsulate twl4030 under option CONFIG_TWL4030_POWER

From: Vaibhav Hiremath hvaibhav@ti.com
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 | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/mmc/omap3_mmc.c b/drivers/mmc/omap3_mmc.c index 513dd25..96c0e65 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, -- 1.6.2.4

hvaibhav@ti.com wrote:
From: Vaibhav Hiremath hvaibhav@ti.com
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
This is fine. I have pushed this to arm/next.
Thanks Tom

-----Original Message----- From: Tom [mailto:Tom.Rix@windriver.com] Sent: Friday, November 27, 2009 7:34 PM To: Hiremath, Vaibhav Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH] omap3_mmc: Encapsulate twl4030 under option CONFIG_TWL4030_POWER
hvaibhav@ti.com wrote:
From: Vaibhav Hiremath hvaibhav@ti.com
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
This is fine. I have pushed this to arm/next.
[Hiremath, Vaibhav] Thanks,
Thanks, Vaibhav
Thanks Tom
participants (3)
-
Hiremath, Vaibhav
-
hvaibhav@ti.com
-
Tom