[U-Boot] [PATCH v2] RTC: Fix return code in MC13783 RTC driver.

Magnus Lilja lilja.magnus at gmail.com
Wed Nov 11 19:56:58 CET 2009


Signed-off-by: Magnus Lilja <lilja.magnus at gmail.com>
---
 drivers/rtc/mc13783-rtc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/rtc/mc13783-rtc.c b/drivers/rtc/mc13783-rtc.c
index 05db2f1..416f50d 100644
--- a/drivers/rtc/mc13783-rtc.c
+++ b/drivers/rtc/mc13783-rtc.c
@@ -109,7 +109,7 @@ int rtc_set(struct rtc_time *rtc)
 
 	spi_release_bus(slave);
 
-	return -1;
+	return 0;
 }
 
 void rtc_reset(void)
-- 
1.5.6



More information about the U-Boot mailing list