From: Jason Jin Date: Mon, 11 Jun 2007 13:14:24 +0000 (+0200) Subject: USB: This patch fix readl in ohci swap reg access. X-Git-Tag: v1.3.0-rc1~19^2~20^2~12^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9b7464a2c88614e1061f509c48930a3d240d1a35;p=u-boot USB: This patch fix readl in ohci swap reg access. Signed-off-by: Jason Jin --- diff --git a/drivers/usb_ohci.c b/drivers/usb_ohci.c index 3cef576b2e..d6b745fadd 100644 --- a/drivers/usb_ohci.c +++ b/drivers/usb_ohci.c @@ -81,7 +81,7 @@ * e.g. PCI controllers need this */ #ifdef CFG_OHCI_SWAP_REG_ACCESS -# define readl(a) __swap_16(*((vu_long *)(a))) +# define readl(a) __swap_32(*((vu_long *)(a))) # define writel(a, b) (*((vu_long *)(b)) = __swap_32((vu_long)a)) #else # define readl(a) (*((vu_long *)(a)))