]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17d4ce2986934809aac580e40ce27582b19d36ec
tree84331c8a64b4947020e78cd7c5d937354b998d10
parent3c09b0f744bbe6845deb9ed212d6c0cd528396ed
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