rtc: m48t86: use generic nvmem
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 22:04:21 +0000 (00:04 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 22:10:10 +0000 (00:10 +0200)
commitf8033aabb23bd8b2b51e2c32ee759f860ecdd1ee
tree84331c8a64b4947020e78cd7c5d937354b998d10
parent5508c72528d22805e301ecdfd3abcd85af24b0ec
rtc: m48t86: 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-m48t86.c