]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
omap3evm: Wrap function under CONFIG_USB_OMAP3
authorSanjeev Premi <premi@ti.com>
Thu, 4 Nov 2010 20:02:29 +0000 (16:02 -0400)
committerSandeep Paulraj <s-paulraj@ti.com>
Thu, 4 Nov 2010 20:02:29 +0000 (16:02 -0400)
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>
board/ti/evm/evm.c

index 9948b9cd30e7742354f31a829ddd6c8c7da25e5e..73330db156a8db886d6a4aee06a4f1a05948af00 100644 (file)
@@ -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