rtc: ds1343: use generic nvmem
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 12 Feb 2018 22:47:38 +0000 (23:47 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:25 +0000 (10:49 +0100)
commitd7501f709410f6813e84ecd5a28e7dc8f47ff792
treeb428c23196e15df43d5dbb7b322b40652cbae228
parentab392864039e7319d0be4f4fb4bbe20a8f8b544f
rtc: ds1343: 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-ds1343.c