summaryrefslogtreecommitdiffstats
path: root/drivers/pci/dwc/pci-keystone.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-08-15 16:27:57 -0500
committerBjorn Helgaas <bhelgaas@google.com>2017-08-16 13:39:31 -0500
commitda4c4be36dc347b9b7eb0760054caa53e31abcc0 (patch)
tree0b93a87a32d0dbcb971db027d38b535c23cd8859 /drivers/pci/dwc/pci-keystone.h
parent44b5557a13bdc04fda582b6fdfa3819792fbfe94 (diff)
downloadlinux-da4c4be36dc347b9b7eb0760054caa53e31abcc0.tar.bz2
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.h')
-rw-r--r--drivers/pci/dwc/pci-keystone.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/dwc/pci-keystone.h b/drivers/pci/dwc/pci-keystone.h
index 74c5825882df..30b7bc2ac380 100644
--- a/drivers/pci/dwc/pci-keystone.h
+++ b/drivers/pci/dwc/pci-keystone.h
@@ -12,9 +12,7 @@
* published by the Free Software Foundation.
*/
-#define MAX_LEGACY_IRQS 4
#define MAX_MSI_HOST_IRQS 8
-#define MAX_LEGACY_HOST_IRQS 4
struct keystone_pcie {
struct dw_pcie *pci;
@@ -22,7 +20,7 @@ struct keystone_pcie {
/* PCI Device ID */
u32 device_id;
int num_legacy_host_irqs;
- int legacy_host_irqs[MAX_LEGACY_HOST_IRQS];
+ int legacy_host_irqs[PCI_NUM_INTX];
struct device_node *legacy_intc_np;
int num_msi_host_irqs;