[PATCH] omap: echi: fix compile error

Sanjeev Premi premi at ti.com
Fri Jan 7 03:10:14 EST 2011


This patch fixes the compiler error:
  CC      drivers/usb/host/ehci-omap.o
drivers/usb/host/ehci-omap.c: In function 'ehci_omap_init':
drivers/usb/host/ehci-omap.c:204: error: 'CPU_ES2P1' undeclar
ed (first use in this function)
drivers/usb/host/ehci-omap.c:204: error: (Each undeclared ide
ntifier is reported only once
drivers/usb/host/ehci-omap.c:204: error: for each function it
 appears in.)
make[3]: *** [drivers/usb/host/ehci-omap.o] Error 1

Problem reported by: Cory Walker (cwalker32 at gmail.com)

Signed-off-by: Sanjeev Premi <premi at ti.com>
---
Should have caught it earlier while sending earlier patches for
OMAP36XX support, but missed building for Beagle; and EHCI wasn't
selected in default configuration for OMAP3EVM.

 drivers/usb/host/ehci-omap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 05f1628..94aa356 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -201,7 +201,7 @@ int ehci_omap_init(struct omap_hcd *omap)
 		v &= ~OMAP_UHH_HOSTCONFIG_P3_CONNECT_STATUS;
 
 	/* Bypass the TLL module for PHY mode operation */
-	 if (get_cpu_rev() <= CPU_ES2P1) {
+	 if (get_cpu_rev() <= OMAP34XX_ES2_1) {
 		if ((omap->port_mode[0] == EHCI_HCD_OMAP_MODE_PHY) ||
 			(omap->port_mode[1] == EHCI_HCD_OMAP_MODE_PHY) ||
 				(omap->port_mode[2] == EHCI_HCD_OMAP_MODE_PHY))
-- 
1.7.2.2




More information about the barebox mailing list