summaryrefslogtreecommitdiffstats
path: root/drivers/pci/dwc/pci-keystone.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-09-07 13:24:01 -0500
committerBjorn Helgaas <bhelgaas@google.com>2017-09-07 13:24:01 -0500
commit8f5b3f5b40d1d4e33570ea74a2023695c37c06b2 (patch)
treede9bf180e2015c87115a44a5592ebbaca3dc0699 /drivers/pci/dwc/pci-keystone.h
parent352948c414d92784a2edb762554d1c682ebd4661 (diff)
parentda4c4be36dc347b9b7eb0760054caa53e31abcc0 (diff)
Merge branch 'pci/host-keystone' into next
* pci/host-keystone: PCI: keystone: Use PCI_NUM_INTX PCI: keystone: Remove duplicate MAX_*_IRQS defs PCI: keystone-dw: Remove unused ks_pcie, pci variables
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;