diff options
author | Wei Yang <weiyang@linux.vnet.ibm.com> | 2015-06-30 03:16:41 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-07-15 06:35:36 +0200 |
commit | fff905f32966109d513ae17afc6fe39f1c76bb67 (patch) | |
tree | 551bd72002082fbd53f1156b98f1b6fc5d2d42ce /drivers/pci/pci.c | |
parent | PCI: Add pcie_downstream_port() (true for Root and Switch Downstream Ports) (diff) | |
download | linux-fff905f32966109d513ae17afc6fe39f1c76bb67.tar.xz linux-fff905f32966109d513ae17afc6fe39f1c76bb67.zip |
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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 0008c950452c..66bd80e7ec12 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) |