drivers/rtc/rtc-twl.c: return correct RTC event from ISR
authorVenu Byravarasu <vbyravarasu@nvidia.com>
Fri, 23 Mar 2012 22:02:34 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:39 +0000 (16:58 -0700)
commit2778ebcc09c002cccdbd6b5509b5cbf4161b486d
tree096e1d6fe478c88db9d8cecf0e24c0d6fe4c73bb
parent94a339d016e26f96a1bd9e08306c857825c91a66
drivers/rtc/rtc-twl.c: return correct RTC event from ISR

Following changes are made as part of this change:

1. As TWL RTC supports periodic interrupt, the correct event should be
   RTC_PF instead of RTC_UF.

2. No need to initialize variable "events" to 0 & then OR it with the
   event values.  Hence fixing it.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-twl.c