Commit b103a2e2 authored by Tony Lindgren's avatar Tony Lindgren

ARM: OMAP3: Fix omap3evm randconfig error introduced by VBUS support

Commit cb8ca589 (ARM: omap3evm: enable VBUS switch for EHCI tranceiver)
added a new randconfig error if TWL4030_CORE is not selected:

arch/arm/mach-omap2/board-omap3evm.c:368: undefined reference to `twl_i2c_read_u8'
arch/arm/mach-omap2/board-omap3evm.c:370: undefined reference to `twl_i2c_write_u8'
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 6d2b6c9e
...@@ -362,6 +362,7 @@ static int omap3evm_twl_gpio_setup(struct device *dev, ...@@ -362,6 +362,7 @@ static int omap3evm_twl_gpio_setup(struct device *dev,
/* Enable VBUS switch by setting TWL4030.GPIO2DIR as output /* Enable VBUS switch by setting TWL4030.GPIO2DIR as output
* for starting USB tranceiver * for starting USB tranceiver
*/ */
#ifdef CONFIG_TWL4030_CORE
if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) { if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) {
u8 val; u8 val;
...@@ -369,6 +370,7 @@ static int omap3evm_twl_gpio_setup(struct device *dev, ...@@ -369,6 +370,7 @@ static int omap3evm_twl_gpio_setup(struct device *dev,
val |= 0x04; /* TWL4030.GPIO2DIR BIT at GPIODATADIR1(0x9B) */ val |= 0x04; /* TWL4030.GPIO2DIR BIT at GPIODATADIR1(0x9B) */
twl_i2c_write_u8(TWL4030_MODULE_GPIO, val, REG_GPIODATADIR1); twl_i2c_write_u8(TWL4030_MODULE_GPIO, val, REG_GPIODATADIR1);
} }
#endif
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment