USB: This patch fix readl in ohci swap reg access.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
This commit is contained in:
Jason Jin 2007-06-11 15:14:24 +02:00 committed by Markus Klotzbuecher
parent c4e2753436
commit 9b7464a2c8

View 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)))