rtc: Suppress duplicate enable/disable of WM8350 update interrupt
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 5 Jan 2010 13:59:08 +0000 (13:59 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Mar 2010 21:16:56 +0000 (22:16 +0100)
commit29c71b138c83c8191f1f7e46fcc28b9d6bc8a5dd
tree75f836772ba015d263a0174718701fc5cd9aa784
parentf99344fc69c3df46786a39ea4283a4175ea40b3f
rtc: Suppress duplicate enable/disable of WM8350 update interrupt

Unlike the wm8350-custom code genirq nests enable and disable calls
so we can't just unconditionally mask or unmask the interrupt,
we need to remember the state we set and only mask or unmask when
there is a real change.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: rtc-linux@googlegroups.com
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/rtc/rtc-wm8350.c
include/linux/mfd/wm8350/rtc.h