Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ben Dooks and committed by
Wim Van Sebroeck
feccebe9 79cb0976

+2 -2
+2 -2
drivers/watchdog/at91sam9_wdt.c
··· 40 40 #define DRV_NAME "AT91SAM9 Watchdog" 41 41 42 42 #define wdt_read(wdt, field) \ 43 - __raw_readl((wdt)->base + (field)) 43 + readl_relaxed((wdt)->base + (field)) 44 44 #define wdt_write(wtd, field, val) \ 45 - __raw_writel((val), (wdt)->base + (field)) 45 + writel_relaxed((val), (wdt)->base + (field)) 46 46 47 47 /* AT91SAM9 watchdog runs a 12bit counter @ 256Hz, 48 48 * use this to convert a watchdog