From: Becky Bruce Date: Fri, 28 May 2010 16:45:17 -0500 Subject: [U-Boot] [PATCH 02/10] drivers/usb/host/ohci-hcd: undef readl/writel before redefining In-Reply-To: <1275083125-15208-2-git-send-email-beckyb@kernel.crashing.org> References: <1275083125-15208-1-git-send-email-beckyb@kernel.crashing.org> <1275083125-15208-2-git-send-email-beckyb@kernel.crashing.org> Message-ID: <1275083125-15208-3-git-send-email-beckyb@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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