diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2015-03-26 14:34:14 (GMT) |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2015-06-22 13:53:57 (GMT) |
commit | feccebe9a9a28f0feeb69b7995a8008478094337 (patch) | |
tree | e9ea56f3ed659121fd1a25777b7eac70951c2868 /drivers/watchdog/at91sam9_wdt.c | |
parent | 79cb097676cf4fd424f0ea4df22877104401c5f9 (diff) | |
download | linux-feccebe9a9a28f0feeb69b7995a8008478094337.tar.xz |
watchdog: at91sam9: use endian agnostic IO
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>
Diffstat (limited to 'drivers/watchdog/at91sam9_wdt.c')
-rw-r--r-- | drivers/watchdog/at91sam9_wdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index 1443b3c..e4698f7 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c @@ -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 |