]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: at91sam9: use standard readl/writel functions instead of raw versions
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Tue, 23 Sep 2014 11:13:52 +0000 (13:13 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 13 Nov 2014 15:07:58 +0000 (16:07 +0100)
commite15486ddc0a16661395c2c03aabea57c08846765
tree67a0670153dc2903d27974705b01301b6ee02cbd
parent7a7dc96a6076f5ca15f951449e7d952d9e72998b
rtc: at91sam9: use standard readl/writel functions instead of raw versions

Raw versions of writel and writel should not be directly used and should
be replaced by their relaxed versions (readl/writel_relaxed), which take
endianness conversion into account.

In this driver we prefer the standard readl/writel function which add the
appropriate memory barrier around the access (the performance penalty is
negligible for this kind of application).

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Johan Hovold <johan@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
drivers/rtc/rtc-at91sam9.c