Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113107
b: refs/heads/master
c: d875a4b
h: refs/heads/master
i:
  113105: 7f50311
  113103: 866acb2
v: v3
  • Loading branch information
Krzysztof Helt authored and David S. Miller committed Sep 8, 2008
1 parent 8144c8a commit 4b2b2f2
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 3baca76f5653482f4b7fe1fc400b01877f6b2d92
refs/heads/master: d875a4b0ffad754e6d89fa561ea7dcdd79c9508b
2 changes: 1 addition & 1 deletion trunk/drivers/rtc/rtc-m48t59.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static int m48t59_rtc_set_time(struct device *dev, struct rtc_time *tm)
M48T59_WRITE((BIN2BCD(tm->tm_mon + 1) & 0x1F), M48T59_MONTH);
M48T59_WRITE(BIN2BCD(tm->tm_year % 100), M48T59_YEAR);

if (tm->tm_year/100)
if (pdata->type == M48T59RTC_TYPE_M48T59 && (tm->tm_year / 100))
val = (M48T59_WDAY_CEB | M48T59_WDAY_CB);
val |= (BIN2BCD(tm->tm_wday) & 0x07);
M48T59_WRITE(val, M48T59_WDAY);
Expand Down

0 comments on commit 4b2b2f2

Please sign in to comment.