diff options
author | Arnd Bergmann <arnd@arndb.de> | 2022-04-02 15:28:18 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-04-07 09:31:31 +0200 |
commit | c78a41fc04f0209cba1e62ccbe6a4844633515e7 (patch) | |
tree | 95d943308c3b5a9ab85aba49ba1bdda76300674a /arch/arm/mach-s3c/mach-mini2440.c | |
parent | ARM: s3c24xx: remove support for ISA drivers on BAST PC/104 (diff) | |
download | linux-c78a41fc04f0209cba1e62ccbe6a4844633515e7.tar.xz linux-c78a41fc04f0209cba1e62ccbe6a4844633515e7.zip |
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-mini2440.c')
-rw-r--r-- | arch/arm/mach-s3c/mach-mini2440.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c/mach-mini2440.c b/arch/arm/mach-s3c/mach-mini2440.c index 551ec660ab59..131015cc0c34 100644 --- a/arch/arm/mach-s3c/mach-mini2440.c +++ b/arch/arm/mach-s3c/mach-mini2440.c @@ -35,7 +35,7 @@ #include "regs-gpio.h" #include <linux/platform_data/leds-s3c24xx.h> -#include <mach/irqs.h> +#include "irqs.h" #include "gpio-samsung.h" #include <linux/platform_data/mtd-nand-s3c2410.h> #include <linux/platform_data/i2c-s3c2410.h> @@ -789,6 +789,7 @@ static void __init mini2440_init(void) MACHINE_START(MINI2440, "MINI2440") /* Maintainer: Michel Pollet <buserror@gmail.com> */ .atag_offset = 0x100, + .nr_irqs = NR_IRQS_S3C2440, .map_io = mini2440_map_io, .init_machine = mini2440_init, .init_irq = s3c2440_init_irq, |