]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rtc: ds1307: use generic nvmem
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 6 Jul 2017 09:42:07 +0000 (11:42 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 7 Jul 2017 11:14:23 +0000 (13:14 +0200)
commitabc925f72c666042bf49fbf590bed01e5dbc2c97
tree151ca4a767b85c9cb97718ea51931c463144b421
parent69b119a642b7e143be08f9cbabca7bc910f5720d
rtc: ds1307: 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-ds1307.c