usb: Fix H20AHB driver for big-endian
authorRobin Murphy <robin.murphy@arm.com>
Mon, 4 Aug 2014 15:42:51 +0000 (16:42 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 20 Aug 2014 16:34:08 +0000 (11:34 -0500)
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/usb/host/ehci-h20ahb.c

index 3ee3c7aa6e5b5a4ea2ba394171629e11cc2314e0..7724bab1828b51d214a6edc1cf5ac09ca65c06b2 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 */