rtc: ds1742: use generic nvmem
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 12 Feb 2018 22:47:48 +0000 (23:47 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:30 +0000 (10:49 +0100)
commit87c78d9512cb85c286de5a8941eaeda8ca6f7bac
treee9459a1488d266625474803df8f8b256ce749449
parent1358e7b2b3312372ba231f6c94902a8dbfc7d2db
rtc: ds1742: 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-ds1742.c