diff options
author | Marc Zyngier <maz@kernel.org> | 2018-09-13 11:42:25 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-06-10 14:09:16 +0200 |
commit | 7c576f4d3ce43fa0fc1ac258dc4768d0f3b3b992 (patch) | |
tree | 1cac4d50ba1d408ce4ba9082c56c405d736138d2 /arch/powerpc/sysdev/tsi108_pci.c | |
parent | scsi/ibmvscsi: Directly include linux/{of.h,irqdomain.h} (diff) | |
download | linux-7c576f4d3ce43fa0fc1ac258dc4768d0f3b3b992.tar.xz linux-7c576f4d3ce43fa0fc1ac258dc4768d0f3b3b992.zip |
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/tsi108_pci.c')
-rw-r--r-- | arch/powerpc/sysdev/tsi108_pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/tsi108_pci.c b/arch/powerpc/sysdev/tsi108_pci.c index 49f9541954f8..042bb38fa5c2 100644 --- a/arch/powerpc/sysdev/tsi108_pci.c +++ b/arch/powerpc/sysdev/tsi108_pci.c @@ -404,7 +404,8 @@ void __init tsi108_pci_int_init(struct device_node *node) { DBG("Tsi108_pci_int_init: initializing PCI interrupts\n"); - pci_irq_host = irq_domain_add_legacy_isa(node, &pci_irq_domain_ops, NULL); + pci_irq_host = irq_domain_add_legacy(node, NR_IRQS_LEGACY, 0, 0, + &pci_irq_domain_ops, NULL); if (pci_irq_host == NULL) { printk(KERN_ERR "pci_irq_host: failed to allocate irq domain!\n"); return; |