]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drivers/rtc/rtc-r9701.c: reset registers if invalid values are detected
authorAndreas Dumberger <andreas.dumberger@tqs.de>
Thu, 12 Apr 2012 19:49:12 +0000 (12:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Apr 2012 20:12:12 +0000 (13:12 -0700)
commitbb58da08f01ee12561867fcd4385b82679ae7f6c
tree892e60c551aa5be4046fe20402c0cb9d2950a978
parent44e4360fa3384850d65dd36fb4e6e5f2f112709b
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: Andreas Dumberger <andreas.dumberger@tqs.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-r9701.c