summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ep93xx/vision_ep9307.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-09-20 11:10:03 +0300
committerArnd Bergmann <arnd@arndb.de>2022-04-04 11:22:37 +0300
commit36f1a4ae6b60a9fbd9a35a3b257dc6e53b5feff1 (patch)
tree75821b68dd4274621292db9fcca5a48f1bfe4011 /arch/arm/mach-ep93xx/vision_ep9307.c
parent482c27273f52ad336e8d076f96f91b358dcb7d0c (diff)
downloadlinux-36f1a4ae6b60a9fbd9a35a3b257dc6e53b5feff1.tar.xz
ARM: ep93xx: enable SPARSE_IRQ
Without CONFIG_SPARSE_IRQ, we rely on mach/irqs.h to define NR_IRQS globally. Do the minimal conversion by setting .nr_irqs in each machine descriptor. Only the vision_ep9307 machine has extra IRQs for GPIOs, so make .nr_irqs the original value there, while using the plain NR_EP93XX_IRQS everywhere else. Cc: Hartley Sweeten <hsweeten@visionengravers.com> Cc: Hubert Feurstein <hubert.feurstein@contec.at> Cc: Lukasz Majewski <lukma@denx.de> Tested-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-ep93xx/vision_ep9307.c')
-rw-r--r--arch/arm/mach-ep93xx/vision_ep9307.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/vision_ep9307.c b/arch/arm/mach-ep93xx/vision_ep9307.c
index e46281e60bf7..30d9cf3791eb 100644
--- a/arch/arm/mach-ep93xx/vision_ep9307.c
+++ b/arch/arm/mach-ep93xx/vision_ep9307.c
@@ -302,6 +302,7 @@ static void __init vision_init_machine(void)
MACHINE_START(VISION_EP9307, "Vision Engraving Systems EP9307")
/* Maintainer: H Hartley Sweeten <hsweeten@visionengravers.com> */
.atag_offset = 0x100,
+ .nr_irqs = NR_EP93XX_IRQS + EP93XX_BOARD_IRQS,
.map_io = vision_map_io,
.init_irq = ep93xx_init_irq,
.init_time = ep93xx_timer_init,