diff options
author | Marc Zyngier <maz@kernel.org> | 2018-09-13 12:42:25 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-06-10 15:09:16 +0300 |
commit | 7c576f4d3ce43fa0fc1ac258dc4768d0f3b3b992 (patch) | |
tree | 1cac4d50ba1d408ce4ba9082c56c405d736138d2 /arch/powerpc/sysdev/mpic.c | |
parent | 5951be4c9c361242c9f0d7c9b9ef03fe82e45c7b (diff) | |
download | linux-7c576f4d3ce43fa0fc1ac258dc4768d0f3b3b992.tar.xz |
powerpc: Convert irq_domain_add_legacy_isa use to irq_domain_add_legacy
irq_domain_add_legacy_isa is a pain. It only exists for the benefit of
two PPC-specific drivers, and creates an ugly dependency between asm/irq.h
and linux/irqdomain.h
Instead, let's convert these two drivers to irq_domain_add_legacy(),
stop using NUM_ISA_INTERRUPTS by directly setting NR_IRQS_LEGACY.
The dependency cannot be broken yet as there is a lot of PPC-related
code that depends on it, but that's the first step towards it.
A followup patch will remove irq_domain_add_legacy_isa.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/powerpc/sysdev/mpic.c')
-rw-r--r-- | arch/powerpc/sysdev/mpic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index b0426f28946a..995fb2ada507 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sysdev/mpic.c @@ -602,7 +602,7 @@ static void __init mpic_scan_ht_pics(struct mpic *mpic) /* Find an mpic associated with a given linux interrupt */ static struct mpic *mpic_find(unsigned int irq) { - if (irq < NUM_ISA_INTERRUPTS) + if (irq < NR_IRQS_LEGACY) return NULL; return irq_get_chip_data(irq); |