summaryrefslogtreecommitdiff
path: root/drivers/usb_ohci.c
diff options
context:
space:
mode:
authorJason Jin <Jason.jin@freescale.com>2007-06-11 15:14:24 +0200
committerMarkus Klotzbuecher <mk@pollux.denx.de>2007-06-11 15:14:24 +0200
commit9b7464a2c88614e1061f509c48930a3d240d1a35 (patch)
treeca26bd9ce8a3839fdaa1be40e824e3951dab37ba /drivers/usb_ohci.c
parentc4e2753436bf8ed42731c5b8b9ceb62cdb482f43 (diff)
USB: This patch fix readl in ohci swap reg access.
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Diffstat (limited to 'drivers/usb_ohci.c')
-rw-r--r--drivers/usb_ohci.c2
1 files changed, 1 insertions, 1 deletions
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)))