rtc: asm9260: rework locking
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 31 Aug 2016 16:15:28 +0000 (18:15 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 5 Sep 2016 15:15:59 +0000 (17:15 +0200)
commitde75ccdd4118ca41ac473c1ab96365280c631cdd
tree5c1632b49e725a2d6899a61d592f8dff60f70a40
parent7f742e8e8ad4c54ae66820c91bbbb6526a461117
rtc: asm9260: rework locking

The rtc-asm9260 driver uses a discrete spinlock (wrongly uninitialized).
Use the rtc mutex to lock mmio accesses instead.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-asm9260.c