Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45473
b: refs/heads/master
c: 0d103e9
h: refs/heads/master
i:
  45471: 0635de8
v: v3
  • Loading branch information
David Brownell authored and Linus Torvalds committed Jan 12, 2007
1 parent bbac0ea commit 679cb6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 6fa1da8ea9318af6a0252f56cd2e689616346218
refs/heads/master: 0d103e90f63c4b78f2101f8c0bd303fa049ce9a7
4 changes: 2 additions & 2 deletions trunk/drivers/rtc/rtc-sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ static int sh_rtc_proc(struct device *dev, struct seq_file *seq)
unsigned int tmp;

tmp = readb(rtc->regbase + RCR1);
seq_printf(seq, "alarm_IRQ\t: %s\n",
(tmp & RCR1_AIE) ? "yes" : "no");
seq_printf(seq, "carry_IRQ\t: %s\n",
(tmp & RCR1_CIE) ? "yes" : "no");

Expand Down Expand Up @@ -428,6 +426,8 @@ static int sh_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *wkalrm)
tm->tm_mon -= 1; /* RTC is 1-12, tm_mon is 0-11 */
tm->tm_year = 0xffff;

wkalrm->enabled = (readb(rtc->regbase + RCR1) & RCR1_AIE) ? 1 : 0;

spin_unlock_irq(&rtc->lock);

return 0;
Expand Down

0 comments on commit 679cb6d

Please sign in to comment.