[U-Boot] [PATCH 02/10] drivers/usb/host/ohci-hcd: undef readl/writel before redefining

Becky Bruce beckyb at kernel.crashing.org
Fri May 28 23:45:17 CEST 2010


This avoids a build warning that you see if anyone in the
header chain has included io.h (which is coming shortly)

Signed-off-by: Becky Bruce <beckyb at kernel.crashing.org>
---
 drivers/usb/host/ohci-hcd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index b03a600..d7e5bd5 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -86,6 +86,8 @@
 /*
  * e.g. PCI controllers need this
  */
+#undef readl
+#undef writel
 #ifdef CONFIG_SYS_OHCI_SWAP_REG_ACCESS
 # define readl(a) __swap_32(*((volatile u32 *)(a)))
 # define writel(a, b) (*((volatile u32 *)(b)) = __swap_32((volatile u32)a))
-- 
1.6.0.6



More information about the U-Boot mailing list