drivers/rtc/rtc-r9701.c: check that r9701_set_datetime() succeeded
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 30 Jul 2012 21:41:47 +0000 (14:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:18 +0000 (17:25 -0700)
commit02b43f6d97ca0af4654bfe3e1030cd2d18e29b85
tree14b7bc8621b1ea5ef36c70959b6e93fdba86f855
parent77f4ba6152d5ba0f489c6be844e3988609b0e3a7
drivers/rtc/rtc-r9701.c: check that r9701_set_datetime() succeeded

When the driver detects that the clock time is invalid, it attempts to
write a sane time into the hardware.  We curently assume that everything
is OK if those writes succeeded.  But it is better to re-read the time
from the hardware to ensure that the new settings got there OK.

Cc: Devendra Naga <devendra.aaru@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Andreas Dumberger <andreas.dumberger@tqs.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-r9701.c