Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: remove code to support non-sparse IRQs
@ 2026-05-10  5:31 Ethan Nelson-Moore
  0 siblings, 0 replies; only message in thread
From: Ethan Nelson-Moore @ 2026-05-10  5:31 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kernel; +Cc: Russell King, Ethan Nelson-Moore

Now that footbridge and riscpc have been converted to sparse IRQs, this
code is unused. Remove it.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
This commit depends on my previous submissions "ARM: riscpc: convert to
sparse IRQs" and "ARM: footbridge: convert to sparse IRQs".

 arch/arm/include/asm/irq.h | 5 -----
 arch/arm/kernel/irq.c      | 2 --
 2 files changed, 7 deletions(-)

diff --git a/arch/arm/include/asm/irq.h b/arch/arm/include/asm/irq.h
index 08589b88c3b9..449094a5044e 100644
--- a/arch/arm/include/asm/irq.h
+++ b/arch/arm/include/asm/irq.h
@@ -3,12 +3,7 @@
 #define __ASM_ARM_IRQ_H
 
 #define NR_IRQS_LEGACY	16
-
-#ifndef CONFIG_SPARSE_IRQ
-#include <mach/irqs.h>
-#else
 #define NR_IRQS NR_IRQS_LEGACY
-#endif
 
 #ifdef CONFIG_ARCH_FOOTBRIDGE
 #define irq_canonicalize(i)	(((i) == 2) ? 9 : i)
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c
index e1993e28a9ec..7458c529a489 100644
--- a/arch/arm/kernel/irq.c
+++ b/arch/arm/kernel/irq.c
@@ -148,9 +148,7 @@ void __init init_IRQ(void)
 	uniphier_cache_init();
 }
 
-#ifdef CONFIG_SPARSE_IRQ
 int __init arch_probe_nr_irqs(void)
 {
 	return irq_set_nr_irqs(machine_desc->nr_irqs ? : NR_IRQS);
 }
-#endif
-- 
2.43.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-10  5:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-10  5:31 [PATCH] ARM: remove code to support non-sparse IRQs Ethan Nelson-Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox