aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c/mach-n30.c
diff options
context:
space:
mode:
authorArnd Bergmann2022-04-02 15:28:18 +0200
committerArnd Bergmann2022-04-07 09:31:31 +0200
commitc78a41fc04f0209cba1e62ccbe6a4844633515e7 (patch)
tree95d943308c3b5a9ab85aba49ba1bdda76300674a /arch/arm/mach-s3c/mach-n30.c
parent91276c0fa4b405c90d7a7fafdca84ae18a516bbf (diff)
ARM: s3c24xx: convert to sparse-irq
As a final bit of preparation for converting to ARCH_MULTIPLATFORM, change the interrupt handling for s3c24xx to use sparse IRQs. Since the number of possible interrupts is already fixed and relatively small per chip, just make it use all legacy interrupts preallocated using the .nr_irqs field in the machine descriptor, rather than actually allocating domains on the fly. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-s3c/mach-n30.c')
-rw-r--r--arch/arm/mach-s3c/mach-n30.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c/mach-n30.c b/arch/arm/mach-s3c/mach-n30.c
index e40c1fcf418c..75f5dc6351a1 100644
--- a/arch/arm/mach-s3c/mach-n30.c
+++ b/arch/arm/mach-s3c/mach-n30.c
@@ -656,6 +656,7 @@ MACHINE_START(N30, "Acer-N30")
Ben Dooks <ben-linux@fluff.org>
*/
.atag_offset = 0x100,
+ .nr_irqs = NR_IRQS_S3C2410,
.init_time = n30_init_time,
.init_machine = n30_init,
.init_irq = s3c2410_init_irq,
@@ -666,6 +667,7 @@ MACHINE_START(N35, "Acer-N35")
/* Maintainer: Christer Weinigel <christer@weinigel.se>
*/
.atag_offset = 0x100,
+ .nr_irqs = NR_IRQS_S3C2410,
.init_time = n30_init_time,
.init_machine = n30_init,
.init_irq = s3c2410_init_irq,