From: Sanjeev Premi Date: Thu, 4 Nov 2010 20:02:29 +0000 (-0400) Subject: omap3evm: Wrap function under CONFIG_USB_OMAP3 X-Git-Tag: v2010.12-rc2~53^2~2^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=63f42400e50c7ebede2974b421db765324ad8c8e;p=oweals%2Fu-boot.git omap3evm: Wrap function under CONFIG_USB_OMAP3 The function omap3_evm_need_extvbus() is required only when USB support is configured. Wrapped this function in #ifdef CONFIG_USB_OMAP3. Signed-off-by: Sanjeev Premi Signed-off-by: Sandeep Paulraj --- diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c index 9948b9cd30..73330db156 100644 --- a/board/ti/evm/evm.c +++ b/board/ti/evm/evm.c @@ -64,6 +64,7 @@ static void omap3_evm_get_revision(void) } } +#ifdef CONFIG_USB_OMAP3 /* * MUSB port on OMAP3EVM Rev >= E requires extvbus programming. */ @@ -76,6 +77,7 @@ u8 omap3_evm_need_extvbus(void) return retval; } +#endif /* * Routine: board_init