PCI: rockchip: Use PCI_NUM_INTX
authorPaul Burton <paul.burton@imgtec.com>
Tue, 15 Aug 2017 21:27:29 +0000 (16:27 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Aug 2017 18:18:06 +0000 (13:18 -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>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Shawn Lin <shawn.lin@rock-chips.com>
drivers/pci/host/pcie-rockchip.c

index 9c631e5adde0ad88278401f5e4258218aee03c17..9ed784360d312f8d2562249b79a26ec85cb3a6ed 100644 (file)
@@ -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");