diff options
-rw-r--r-- | arch/arm/mach-omap2/board-omap3evm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index fdc00ca9a514..ef230a0eb5eb 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -362,6 +362,7 @@ static int omap3evm_twl_gpio_setup(struct device *dev, | |||
362 | /* Enable VBUS switch by setting TWL4030.GPIO2DIR as output | 362 | /* Enable VBUS switch by setting TWL4030.GPIO2DIR as output |
363 | * for starting USB tranceiver | 363 | * for starting USB tranceiver |
364 | */ | 364 | */ |
365 | #ifdef CONFIG_TWL4030_CORE | ||
365 | if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) { | 366 | if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) { |
366 | u8 val; | 367 | u8 val; |
367 | 368 | ||
@@ -369,6 +370,7 @@ static int omap3evm_twl_gpio_setup(struct device *dev, | |||
369 | val |= 0x04; /* TWL4030.GPIO2DIR BIT at GPIODATADIR1(0x9B) */ | 370 | val |= 0x04; /* TWL4030.GPIO2DIR BIT at GPIODATADIR1(0x9B) */ |
370 | twl_i2c_write_u8(TWL4030_MODULE_GPIO, val, REG_GPIODATADIR1); | 371 | twl_i2c_write_u8(TWL4030_MODULE_GPIO, val, REG_GPIODATADIR1); |
371 | } | 372 | } |
373 | #endif | ||
372 | 374 | ||
373 | return 0; | 375 | return 0; |
374 | } | 376 | } |