rtc: cmos: use generic nvmem
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 12 Feb 2018 22:47:46 +0000 (23:47 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:29 +0000 (10:49 +0100)
commit8b5b7958fd1cac54bdca62ec5552c6be0b38def4
tree8d2adf36d1f0ec4287bf92be64794f6662d21165
parent53d29e0a3afe0567db9e4360e8523b092eb2d4e4
rtc: cmos: use generic nvmem

Instead of adding a binary sysfs attribute from the driver, use the
core to register an nvmem device. This allows to use the in-kernel
interface to access the nvram.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-cmos.c