summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorWei Yang <weiyang@linux.vnet.ibm.com>2015-06-30 09:16:41 +0800
committerBjorn Helgaas <bhelgaas@google.com>2015-07-14 23:35:36 -0500
commitfff905f32966109d513ae17afc6fe39f1c76bb67 (patch)
tree551bd72002082fbd53f1156b98f1b6fc5d2d42ce /drivers/pci/pci.c
parentffb4d602623aef9eb813a35b87b20854c030a2ec (diff)
downloadop-kernel-dev-fff905f32966109d513ae17afc6fe39f1c76bb67.zip
op-kernel-dev-fff905f32966109d513ae17afc6fe39f1c76bb67.tar.gz
PCI: Move PCI_FIND_CAP_TTL to pci.h and use it in quirks
Some quirks search for a HyperTransport capability and use a hard-coded TTL value of 48 to avoid an infinite loop. Move the definition of PCI_FIND_CAP_TTL to pci.h and use it instead of the hard-coded TTL values. [bhelgaas: changelog] Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 0008c95..66bd80e 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -140,7 +140,6 @@ void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar)
EXPORT_SYMBOL_GPL(pci_ioremap_bar);
#endif
-#define PCI_FIND_CAP_TTL 48
static int __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn,
u8 pos, int cap, int *ttl)
OpenPOWER on IntegriCloud