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 <premi@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c
index 9948b9c..73330db 100644
--- a/board/ti/evm/evm.c
+++ b/board/ti/evm/evm.c
@@ -64,6 +64,7 @@
}
}
+#ifdef CONFIG_USB_OMAP3
/*
* MUSB port on OMAP3EVM Rev >= E requires extvbus programming.
*/
@@ -76,6 +77,7 @@
return retval;
}
+#endif
/*
* Routine: board_init