From: Paul Burton Date: Tue, 15 Aug 2017 21:26:36 +0000 (-0500) Subject: PCI: faraday: Use PCI_NUM_INTX X-Git-Tag: v4.14-rc1~87^2~29^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=341d3299c069d70b9979cad67d204a41f225c584;p=platform%2Fkernel%2Flinux-rpi.git PCI: faraday: Use PCI_NUM_INTX 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 Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/host/pci-ftpci100.c b/drivers/pci/host/pci-ftpci100.c index 3f5d224..96028f0 100644 --- a/drivers/pci/host/pci-ftpci100.c +++ b/drivers/pci/host/pci-ftpci100.c @@ -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");