Commit 6da7bb1e authored by Ben Dooks's avatar Ben Dooks Committed by Linus Torvalds

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: default avatarBen Dooks <ben.dooks@codethink.co.uk>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Andrew Victor <linux@maxim.org.za>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 07eec628
...@@ -37,9 +37,9 @@ ...@@ -37,9 +37,9 @@
#include "rtc-at91rm9200.h" #include "rtc-at91rm9200.h"
#define at91_rtc_read(field) \ #define at91_rtc_read(field) \
__raw_readl(at91_rtc_regs + field) readl_relaxed(at91_rtc_regs + field)
#define at91_rtc_write(field, val) \ #define at91_rtc_write(field, val) \
__raw_writel((val), at91_rtc_regs + field) writel_relaxed((val), at91_rtc_regs + field)
#define AT91_RTC_EPOCH 1900UL /* just like arch/arm/common/rtctime.c */ #define AT91_RTC_EPOCH 1900UL /* just like arch/arm/common/rtctime.c */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment