diff options
author | Felipe Balbi <balbi@ti.com> | 2011-11-23 23:43:37 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-11-23 23:43:37 +0100 |
commit | 5a4f1844c2ba21f804d7729306d9b16eaeb724a8 (patch) | |
tree | 67fbc34be26eec9c1619ddd204d0138760f32b0f /arch/arm/mach-omap2 | |
parent | ARM: OMAP: PM: only register TWL with voltage layer when device is present (diff) | |
download | linux-5a4f1844c2ba21f804d7729306d9b16eaeb724a8.tar.xz linux-5a4f1844c2ba21f804d7729306d9b16eaeb724a8.zip |
ARM: OMAP: smartreflex: fix IRQ handling bug
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>
Cc: stable@vger.kernel.org
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/smartreflex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 6a4f6839a7d9..cf246b39bac7 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -139,7 +139,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); |