Pārlūkot izejas kodu

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

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Jason Jin 18 gadi atpakaļ
vecāks
revīzija
9b7464a2c8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      drivers/usb_ohci.c

+ 1 - 1
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)))