From: Kukjin Kim Date: Wed, 27 Oct 2010 22:33:11 +0000 (-0700) Subject: rtc: rtc-s3c: add rtc_valid_tm in s3c_rtc_gettime() X-Git-Tag: MMI-PSA29.97-13-9~21932^2~123 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5b3ffddd8ddb4712dfe14ad3e23eb5494f11bf61;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git rtc: rtc-s3c: add rtc_valid_tm in s3c_rtc_gettime() Add "rtc_valid_tm" in s3c_rtc_gettime() as per Wan ZongShun's suggestion. Suggested-by: Wan ZongShun Signed-off-by: Kukjin Kim Cc: Ben Dooks Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c index d0498a223f40..cf953ecbfca9 100644 --- a/drivers/rtc/rtc-s3c.c +++ b/drivers/rtc/rtc-s3c.c @@ -185,7 +185,7 @@ static int s3c_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) rtc_tm->tm_year += 100; rtc_tm->tm_mon -= 1; - return 0; + return rtc_valid_tm(rtc_tm); } static int s3c_rtc_settime(struct device *dev, struct rtc_time *tm)