diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2015-04-16 15:49:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:12 -0400 |
commit | 6da7bb1e9cef9ab956e4223125090e4465f51fb2 (patch) | |
tree | f994edd29fbd01c4294eba5859b6b4c56c517324 | |
parent | 07eec628ffcea711e14644e14d2c83b4150ba1b7 (diff) |
drivers/rtc/rtc-at91rm9200.c: make IO endian agnostic
Change the __raw IO calls to readl/write_relaxed which makes the driver
endian agnostic to run properly on big endian systems.
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Andrew Victor <linux@maxim.org.za>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/rtc/rtc-at91rm9200.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c index b283a1a573b3..35efd3f75b18 100644 --- a/drivers/rtc/rtc-at91rm9200.c +++ b/drivers/rtc/rtc-at91rm9200.c | |||
@@ -37,9 +37,9 @@ | |||
37 | #include "rtc-at91rm9200.h" | 37 | #include "rtc-at91rm9200.h" |
38 | 38 | ||
39 | #define at91_rtc_read(field) \ | 39 | #define at91_rtc_read(field) \ |
40 | __raw_readl(at91_rtc_regs + field) | 40 | readl_relaxed(at91_rtc_regs + field) |
41 | #define at91_rtc_write(field, val) \ | 41 | #define at91_rtc_write(field, val) \ |
42 | __raw_writel((val), at91_rtc_regs + field) | 42 | writel_relaxed((val), at91_rtc_regs + field) |
43 | 43 | ||
44 | #define AT91_RTC_EPOCH 1900UL /* just like arch/arm/common/rtctime.c */ | 44 | #define AT91_RTC_EPOCH 1900UL /* just like arch/arm/common/rtctime.c */ |
45 | 45 | ||