diff options
author | Jan Kardell <jan.kardell@telliq.com> | 2015-05-28 08:48:45 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-06-25 01:13:40 +0200 |
commit | 538330ccb93849530f5617d1fa870237496caa60 (patch) | |
tree | 5079ddae4de1e6ae2f5440c4a5e52efd1934fc3e /drivers/rtc/rtc-ds1216.c | |
parent | rtc: driver for Cortina Gemini (diff) | |
download | linux-538330ccb93849530f5617d1fa870237496caa60.tar.xz linux-538330ccb93849530f5617d1fa870237496caa60.zip |
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-ds1216.c')
0 files changed, 0 insertions, 0 deletions