Skip to content

Commit

Permalink
rtc: rtc-s3c: add rtc_valid_tm in s3c_rtc_gettime()
Browse files Browse the repository at this point in the history
Add "rtc_valid_tm" in s3c_rtc_gettime() as per Wan ZongShun's suggestion.

Suggested-by: Wan ZongShun <[email protected]>
Signed-off-by: Kukjin Kim <[email protected]>
Cc: Ben Dooks <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
kgene authored and torvalds committed Oct 28, 2010
1 parent e1df962 commit 5b3ffdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-s3c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5b3ffdd

Please sign in to comment.