drivers/rtc/rtc-at91rm9200.c: make IO endian agnostic
authorBen Dooks <ben.dooks@codethink.co.uk>
Thu, 16 Apr 2015 19:49:32 +0000 (12:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:12 +0000 (09:04 -0400)
commit6da7bb1e9cef9ab956e4223125090e4465f51fb2
treef994edd29fbd01c4294eba5859b6b4c56c517324
parent07eec628ffcea711e14644e14d2c83b4150ba1b7
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>
drivers/rtc/rtc-at91rm9200.c