mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
drivers/rtc/rtc-twl.c: simplify RTC interrupt clearing
For clearing RTC interrupt, programming ALARM bit only is sufficient, as all other bits are any way not affected by writing 0 to them. Hence removed unwanted OR operation. Signed-off-by: Venu Byravarasu <[email protected]> Cc: Alessandro Zummo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f7439bcb74
commit
94a339d016
1 changed files with 1 additions and 1 deletions
|
|
@ -384,7 +384,7 @@ static irqreturn_t twl_rtc_interrupt(int irq, void *rtc)
|
|||
else
|
||||
events |= RTC_IRQF | RTC_UF;
|
||||
|
||||
res = twl_rtc_write_u8(rd_reg | BIT_RTC_STATUS_REG_ALARM_M,
|
||||
res = twl_rtc_write_u8(BIT_RTC_STATUS_REG_ALARM_M,
|
||||
REG_RTC_STATUS_REG);
|
||||
if (res)
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue