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)
commit41e607f21b16ce648d629daa0349bfe4bf4cadaa
treead0a5313506a8c1d0e16506a6d9ae3d313a06cb6
parent6a4e89161e4ae4aa57eb8d4a419e7fb2cc340a13
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