USB: This patch fix readl in ohci swap reg access.
authorJason Jin <Jason.jin@freescale.com>
Mon, 11 Jun 2007 13:14:24 +0000 (15:14 +0200)
committerMarkus Klotzbuecher <mk@pollux.denx.de>
Mon, 11 Jun 2007 13:14:24 +0000 (15:14 +0200)
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
drivers/usb_ohci.c

index 3cef576b2e94fefb9e11f58b0e775cae117f8e39..d6b745fadd65f09217fbf1d3ede23e51bcba43d9 100644 (file)
@@ -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)))