]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Dec 2012 19:13:09 +0000 (11:13 -0800)
commitae946972e706d8f83a1758f7c033e1bcdbf7ee65
tree8c636cd5eb808885004e0134a8fe1588c2051a03
parente4952fb649ae08f5fe51b93b9eabcba356628f1e
Dove: Fix irq_to_pmu()

commit d356cf5a74afa32b40decca3c9dd88bc3cd63eb5 upstream.

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>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-dove/include/mach/pm.h