Browse Source

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 <paul.burton@imgtec.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Paul Burton 8 years ago
parent
commit
341d3299c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/pci/host/pci-ftpci100.c

+ 1 - 1
drivers/pci/host/pci-ftpci100.c

@@ -355,7 +355,7 @@ static int faraday_pci_setup_cascaded_irq(struct faraday_pci *p)
 		return irq ?: -EINVAL;
 		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);
 					     &faraday_pci_irqdomain_ops, p);
 	if (!p->irqdomain) {
 	if (!p->irqdomain) {
 		dev_err(p->dev, "failed to create Gemini PCI IRQ domain\n");
 		dev_err(p->dev, "failed to create Gemini PCI IRQ domain\n");