summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2017-08-15 16:27:29 -0500
committerBjorn Helgaas <bhelgaas@google.com>2017-08-29 13:18:06 -0500
commit62f9ee98e14521166954e1e0d9fc1ee4ff2a5615 (patch)
treed30e0638acdce234a86e8fe670941113d6ea68e6 /drivers/pci
parent18aca19722aa8a80a5dabb01dfc24bb146d3f1f6 (diff)
downloadop-kernel-dev-62f9ee98e14521166954e1e0d9fc1ee4ff2a5615.zip
op-kernel-dev-62f9ee98e14521166954e1e0d9fc1ee4ff2a5615.tar.gz
PCI: rockchip: 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> Cc: Heiko Stuebner <heiko@sntech.de> Cc: Shawn Lin <shawn.lin@rock-chips.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pcie-rockchip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c
index 9c631e5..9ed7843 100644
--- a/drivers/pci/host/pcie-rockchip.c
+++ b/drivers/pci/host/pcie-rockchip.c
@@ -1211,7 +1211,7 @@ static int rockchip_pcie_init_irq_domain(struct rockchip_pcie *rockchip)
return -EINVAL;
}
- rockchip->irq_domain = irq_domain_add_linear(intc, 4,
+ rockchip->irq_domain = irq_domain_add_linear(intc, PCI_NUM_INTX,
&intx_domain_ops, rockchip);
if (!rockchip->irq_domain) {
dev_err(dev, "failed to get a INTx IRQ domain\n");
OpenPOWER on IntegriCloud