]> git.sur5r.net Git - u-boot/commit
dm: rtc: Correct rtc_read32() return value
authorSimon Glass <sjg@chromium.org>
Sun, 18 Oct 2015 21:55:31 +0000 (15:55 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Oct 2015 13:46:50 +0000 (07:46 -0600)
commit9a4eb5977ad5dc2516e1219613258e30b10d27bd
tree4dcf19a25f13ac70ea08c670bc4e1c70b0816af1
parentb26eb88658b9fbb87c5bae22cede05de3124abb7
dm: rtc: Correct rtc_read32() return value

The current check is incorrect and will fail when any non-zero byte is read.
Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/rtc/rtc-uclass.c