ARM: 6496/1: GIC: Do not try to register more then NR_IRQS interrupts
authorPawel Moll <pawel.moll@arm.com>
Fri, 26 Nov 2010 12:45:43 +0000 (13:45 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 30 Nov 2010 13:38:57 +0000 (13:38 +0000)
commite6afec9b6808eff6dc392ac07c1552e87aebcdf7
tree67ea03e347da896518f96c7611eb792bf6a9f374
parente8a7e48bb248a1196484d3f8afa53bded2b24e71
ARM: 6496/1: GIC: Do not try to register more then NR_IRQS interrupts

This change limits number of GIC-originating interrupts to the
platform maximum (defined by NR_IRQS) while still initialising
all distributor registers.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/gic.c