* [PATCH] omap: echi: fix compile error
@ 2011-01-07 8:10 Sanjeev Premi
0 siblings, 0 replies; only message in thread
From: Sanjeev Premi @ 2011-01-07 8:10 UTC (permalink / raw)
To: barebox
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@gmail.com)
Signed-off-by: Sanjeev Premi <premi@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-07 8:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-07 8:10 [PATCH] omap: echi: fix compile error Sanjeev Premi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox