diff options
author | Hyogi Gim <ciogenis@gmail.com> | 2014-12-11 00:52:27 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-11 02:41:13 +0100 |
commit | 16682c86d2fb68cc78c6cc0af51c2a78809dc5b0 (patch) | |
tree | 99297da840e40be5c9a98a1e3c1fb4ed038a1bad /drivers/rtc/rtc-omap.c | |
parent | drivers/rtc/rtc-sirfsoc.c: move hardware initilization earlier in probe (diff) | |
download | linux-16682c86d2fb68cc78c6cc0af51c2a78809dc5b0.tar.xz linux-16682c86d2fb68cc78c6cc0af51c2a78809dc5b0.zip |
drivers/rtc/interface.c: check the validation of rtc_time in __rtc_read_time
Some rtc devices always return '0' when rtc_class_ops.read_time is
called. So if rtc_time isn't verified in callback, rtc interface cannot
know whether rtc_time is valid.
Check rtc_time by using 'rtc_valid_tm' in '__rtc_read_time'. And add
the message for debugging.
Signed-off-by: Hyogi Gim <hyogi.gim@lge.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-omap.c')
0 files changed, 0 insertions, 0 deletions