Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295243
b: refs/heads/master
c: 2778ebc
h: refs/heads/master
i:
  295241: 7749d37
  295239: 7e92cb7
v: v3
  • Loading branch information
Venu Byravarasu authored and Linus Torvalds committed Mar 23, 2012
1 parent 1f67f6a commit 4865f59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 94a339d016e26f96a1bd9e08306c857825c91a66
refs/heads/master: 2778ebcc09c002cccdbd6b5509b5cbf4161b486d
6 changes: 3 additions & 3 deletions trunk/drivers/rtc/rtc-twl.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static int twl_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm)

static irqreturn_t twl_rtc_interrupt(int irq, void *rtc)
{
unsigned long events = 0;
unsigned long events;
int ret = IRQ_NONE;
int res;
u8 rd_reg;
Expand All @@ -380,9 +380,9 @@ static irqreturn_t twl_rtc_interrupt(int irq, void *rtc)
* by reading RTS_INTERRUPTS_REGISTER[IT_TIMER,IT_ALARM]
*/
if (rd_reg & BIT_RTC_STATUS_REG_ALARM_M)
events |= RTC_IRQF | RTC_AF;
events = RTC_IRQF | RTC_AF;
else
events |= RTC_IRQF | RTC_UF;
events = RTC_IRQF | RTC_PF;

res = twl_rtc_write_u8(BIT_RTC_STATUS_REG_ALARM_M,
REG_RTC_STATUS_REG);
Expand Down

0 comments on commit 4865f59

Please sign in to comment.