Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113112
b: refs/heads/master
c: 833be4e
h: refs/heads/master
v: v3
  • Loading branch information
Robert Reif authored and David S. Miller committed Sep 10, 2008
1 parent fe4083e commit 9ed9952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 088a39623660f2875aaf15649bf663bbb5a8a219
refs/heads/master: 833be4e1f080050706901d8605f2e9ee863464a9
3 changes: 2 additions & 1 deletion trunk/drivers/rtc/rtc-m48t59.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ static int m48t59_rtc_read_time(struct device *dev, struct rtc_time *tm)
tm->tm_mday = BCD2BIN(M48T59_READ(M48T59_MDAY));

val = M48T59_READ(M48T59_WDAY);
if ((val & M48T59_WDAY_CEB) && (val & M48T59_WDAY_CB)) {
if ((pdata->type == M48T59RTC_TYPE_M48T59) &&
(val & M48T59_WDAY_CEB) && (val & M48T59_WDAY_CB)) {
dev_dbg(dev, "Century bit is enabled\n");
tm->tm_year += 100; /* one century */
}
Expand Down

0 comments on commit 9ed9952

Please sign in to comment.