]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
PCI: faraday: Use PCI_NUM_INTX
authorPaul Burton <paul.burton@imgtec.com>
Tue, 15 Aug 2017 21:26:36 +0000 (16:26 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 16 Aug 2017 16:42:28 +0000 (11:42 -0500)
Use the PCI_NUM_INTX macro to indicate the number of PCI INTx interrupts
rather than the magic number 4. This makes it clearer where the number
comes from & what it relates to.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-ftpci100.c

index 3f5d224e7b1a8d04aac64b452e264bc75e9915c2..96028f01bc90142e50ef3b8ce5d85e6775f1e619 100644 (file)
@@ -355,7 +355,7 @@ static int faraday_pci_setup_cascaded_irq(struct faraday_pci *p)
                return irq ?: -EINVAL;
        }
 
-       p->irqdomain = irq_domain_add_linear(intc, 4,
+       p->irqdomain = irq_domain_add_linear(intc, PCI_NUM_INTX,
                                             &faraday_pci_irqdomain_ops, p);
        if (!p->irqdomain) {
                dev_err(p->dev, "failed to create Gemini PCI IRQ domain\n");