watchdog: at91sam9: use endian agnostic IO
authorBen Dooks <ben.dooks@codethink.co.uk>
Thu, 26 Mar 2015 14:34:14 +0000 (14:34 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 22 Jun 2015 13:53:57 +0000 (15:53 +0200)
Use endian agnostic IO functions for the watchdog driver for when it
is enabled on ATSAMA5D36 devices running in big endian.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/at91sam9_wdt.c

index 1443b3c391de497c05fe332f1c4cdd067bc5f5c9..e4698f7c5f9306826836e7856b7862aa21c593d6 100644 (file)
@@ -40,9 +40,9 @@
 #define DRV_NAME "AT91SAM9 Watchdog"
 
 #define wdt_read(wdt, field) \
-       __raw_readl((wdt)->base + (field))
+       readl_relaxed((wdt)->base + (field))
 #define wdt_write(wtd, field, val) \
-       __raw_writel((val), (wdt)->base + (field))
+       writel_relaxed((val), (wdt)->base + (field))
 
 /* AT91SAM9 watchdog runs a 12bit counter @ 256Hz,
  * use this to convert a watchdog