usb: Fix H20AHB driver for big-endian
authorRobin Murphy <robin.murphy@arm.com>
Mon, 4 Aug 2014 15:42:51 +0000 (16:42 +0100)
committerRobin Murphy <robin.murphy@arm.com>
Mon, 18 Aug 2014 10:53:21 +0000 (11:53 +0100)
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
drivers/usb/host/ehci-h20ahb.c

index 3ee3c7a..7724bab 100644 (file)
@@ -58,12 +58,12 @@ struct h20ahb_hcd {
 
 static inline void ehci_write(void __iomem *base, u32 reg, u32 val)
 {
-       __raw_writel(val, base + reg);
+       writel_relaxed(val, base + reg);
 }
 
 static inline u32 ehci_read(void __iomem *base, u32 reg)
 {
-       return __raw_readl(base + reg);
+       return readl_relaxed(base + reg);
 }
 
 /* configure so an HC device and id are always provided */