OSDN Git Service

rtc: ds1553: use generic nvmem
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 12 Feb 2018 22:47:43 +0000 (23:47 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:28 +0000 (10:49 +0100)
commit3a9a06d44bf75a1e0752e2de686729fb2a85ad22
tree22566576b33535200580584c9fb7e6e48c863cdb
parent18c88cc9b0483c78562a0192779ec4d7ddc5dcf5
rtc: ds1553: use generic nvmem

Instead of adding a binary sysfs attribute from the driver (which suffers
from a race condition as the attribute appears after the device), use the
core to register an nvmem device.

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