OSDN Git Service

rtc: m48t59: use generic nvmem
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 12 Feb 2018 22:47:40 +0000 (23:47 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:26 +0000 (10:49 +0100)
commit0ff3565d88cde06c4ce20c55e7ce23050e1d6a0d
tree44c2b7d9907aede924fbb2871abb041221582017
parentaffb842b84a27d12ab7fd0a86cefda0a343f0941
rtc: m48t59: 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-m48t59.c