]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1305: use generic nvmem
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 22:03:23 +0000 (00:03 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 22:10:06 +0000 (00:10 +0200)
commitf3c1e4939aa2fd5d35280251901922a79a0c3fa9
treead0a5313506a8c1d0e16506a6d9ae3d313a06cb6
parenta910fe5b02fd82cd642ced57735b678e94fac890
rtc: ds1305: 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-ds1305.c