Skip to content
Commit bb58da08 authored by Andreas Dumberger's avatar Andreas Dumberger Committed by Linus Torvalds
Browse files

drivers/rtc/rtc-r9701.c: reset registers if invalid values are detected



hwclock refuses to set date/time if RTC registers contain invalid
values.  Check the date/time register values at probe time and
initialize them to make hwclock happy.

Signed-off-by: default avatarAndreas Dumberger <andreas.dumberger@tqs.de>
Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 44e4360f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment