OSDN Git Service

rtc: ds1511: use generic nvmem
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 22:05:29 +0000 (00:05 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 22:10:17 +0000 (00:10 +0200)
commit9d7ed21ff4af20628bad39689ff946d4649472d6
treeb7671ec451e836209f70a76c8fa4a7219ad4a0b3
parenta283d27625ffe3dadf5daece25674eab89722b6a
rtc: ds1511: 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@free-electrons.com>
drivers/rtc/rtc-ds1511.c