Dove: Fix irq_to_pmu()
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Sun, 18 Nov 2012 16:39:32 +0000 (16:39 +0000)
committerJason Cooper <jason@lakedaemon.net>
Wed, 21 Nov 2012 18:28:25 +0000 (18:28 +0000)
commitd356cf5a74afa32b40decca3c9dd88bc3cd63eb5
treec129e0e195c3d899a164724bf7d9b242d2093bbd
parent5d3df935426271016b895aecaa247101b4bfa35e
Dove: Fix irq_to_pmu()

PMU interrupts start at IRQ_DOVE_PMU_START, not IRQ_DOVE_PMU_START + 1.
Fix the condition.  (It may have been less likely to occur had the code
been written "if (irq >= IRQ_DOVE_PMU_START" which imho is the easier
to understand notation, and matches the normal way of thinking about
these things.)

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-dove/include/mach/pm.h