diff options
author | Jan Kardell <jan.kardell@telliq.com> | 2015-05-28 09:48:45 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-06-25 02:13:40 +0300 |
commit | 538330ccb93849530f5617d1fa870237496caa60 (patch) | |
tree | 5079ddae4de1e6ae2f5440c4a5e52efd1934fc3e /drivers/rtc/rtc-spear.c | |
parent | 98a9bb5bf44bb6ee372f2a3b42703f597030cc48 (diff) | |
download | linux-538330ccb93849530f5617d1fa870237496caa60.tar.xz |
rtc: pcf8563 fix: return -EINVAL if we read an invalid time.
Return -EINVAL if the voltage low bit is set to avoid getting a bogus
time at boot.
There was a comment stating that util-linux hwclock refuses to set a
new time if we return an error code on read, but at least the current
version do set the time as expected. Remove the comment and the check
for valid time, and let the rtc core check it for us.
Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-spear.c')
0 files changed, 0 insertions, 0 deletions