diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-15 16:27:57 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-16 13:39:31 -0500 |
commit | da4c4be36dc347b9b7eb0760054caa53e31abcc0 (patch) | |
tree | 0b93a87a32d0dbcb971db027d38b535c23cd8859 /drivers/pci/dwc/pci-keystone-dw.c | |
parent | PCI: keystone: Remove duplicate MAX_*_IRQS defs (diff) | |
download | linux-dev-da4c4be36dc347b9b7eb0760054caa53e31abcc0.tar.xz linux-dev-da4c4be36dc347b9b7eb0760054caa53e31abcc0.zip |
PCI: keystone: Use PCI_NUM_INTX
Switch from using custom MAX_LEGACY_IRQS and MAX_LEGACY_HOST_IRQS macros to
the generic PCI_NUM_INTX definition for the number of INTx interrupts.
Based-on-similar-patches-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Murali Karicheri <m-karicheri2@ti.com>
Diffstat (limited to 'drivers/pci/dwc/pci-keystone-dw.c')
-rw-r--r-- | drivers/pci/dwc/pci-keystone-dw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/dwc/pci-keystone-dw.c b/drivers/pci/dwc/pci-keystone-dw.c index df60f48716d9..3b0f206590f9 100644 --- a/drivers/pci/dwc/pci-keystone-dw.c +++ b/drivers/pci/dwc/pci-keystone-dw.c @@ -251,7 +251,7 @@ void ks_dw_pcie_enable_legacy_irqs(struct keystone_pcie *ks_pcie) { int i; - for (i = 0; i < MAX_LEGACY_IRQS; i++) + for (i = 0; i < PCI_NUM_INTX; i++) ks_dw_app_writel(ks_pcie, IRQ_ENABLE_SET + (i << 4), 0x1); } @@ -557,7 +557,7 @@ int __init ks_dw_pcie_host_init(struct keystone_pcie *ks_pcie, /* Create legacy IRQ domain */ ks_pcie->legacy_irq_domain = irq_domain_add_linear(ks_pcie->legacy_intc_np, - MAX_LEGACY_IRQS, + PCI_NUM_INTX, &ks_dw_pcie_legacy_irq_domain_ops, NULL); if (!ks_pcie->legacy_irq_domain) { |