]> 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)
commitc9432134f3284f6e64de8351d6f5d404d6fe9e54
tree84331c8a64b4947020e78cd7c5d937354b998d10
parent9ff56b66807e14da7512a401615ca60110954e61
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