aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-11-23 14:43:37 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-09 08:52:24 -0800
commite2dcdeea518813b728216fe52d94c3b0a5a0b599 (patch)
tree3a3ac9d1d8e5ff757dc8f021b2943d622dce2811 /arch/arm
parent051a11b53377e312462be9423c083adfc44d600c (diff)
downloadkernel_samsung_espresso10-e2dcdeea518813b728216fe52d94c3b0a5a0b599.zip
kernel_samsung_espresso10-e2dcdeea518813b728216fe52d94c3b0a5a0b599.tar.gz
kernel_samsung_espresso10-e2dcdeea518813b728216fe52d94c3b0a5a0b599.tar.bz2
ARM: OMAP: smartreflex: fix IRQ handling bug
commit 5a4f1844c2ba21f804d7729306d9b16eaeb724a8 upstream. Fix a bug which has been on this driver since it was added by the original commit 984aa6db which would never clear IRQSTATUS bits. Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/smartreflex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index fb7dc52..f5a6bc1 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -137,7 +137,7 @@ static irqreturn_t sr_interrupt(int irq, void *data)
sr_write_reg(sr_info, ERRCONFIG_V1, status);
} else if (sr_info->ip_type == SR_TYPE_V2) {
/* Read the status bits */
- sr_read_reg(sr_info, IRQSTATUS);
+ status = sr_read_reg(sr_info, IRQSTATUS);
/* Clear them by writing back */
sr_write_reg(sr_info, IRQSTATUS, status);