projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1df962
)
rtc: rtc-s3c: add rtc_valid_tm in s3c_rtc_gettime()
author
Kukjin Kim
<
[email protected]
>
Wed, 27 Oct 2010 22:33:11 +0000
(15:33 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 28 Oct 2010 01:03:06 +0000
(18:03 -0700)
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]
>
drivers/rtc/rtc-s3c.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-s3c.c
b/drivers/rtc/rtc-s3c.c
index d0498a223f407946c9da0c8954085ae2ec42fb8b..cf953ecbfca934e8b9c7058f976610ff092016ae 100644
(file)
--- 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)