summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-05-18 16:52:34 -0600
committerBjorn Helgaas <bhelgaas@google.com>2012-06-11 11:23:35 -0600
commit533b6608b73669309becd90f11f939b60bb221be (patch)
tree29c7eb5d508f1aee8a64b78f780cbcc1ed545bd9 /drivers/pci/pci.c
parent109cdbc223f6e2d6c80f8371f22415b50c18a366 (diff)
downloadblackbird-obmc-linux-533b6608b73669309becd90f11f939b60bb221be.tar.gz
blackbird-obmc-linux-533b6608b73669309becd90f11f939b60bb221be.zip
PCI: remove pci_max_busnr() (was already commented out)
pci_max_busnr() has been commented out for years (since 54c762fe62), and this patch removes it completely. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index de9386da2eb2..2cc53acad26a 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -136,30 +136,6 @@ void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar)
EXPORT_SYMBOL_GPL(pci_ioremap_bar);
#endif
-#if 0
-/**
- * pci_max_busnr - returns maximum PCI bus number
- *
- * Returns the highest PCI bus number present in the system global list of
- * PCI buses.
- */
-unsigned char __devinit
-pci_max_busnr(void)
-{
- struct pci_bus *bus = NULL;
- unsigned char max, n;
-
- max = 0;
- while ((bus = pci_find_next_bus(bus)) != NULL) {
- n = pci_bus_max_busnr(bus);
- if(n > max)
- max = n;
- }
- return max;
-}
-
-#endif /* 0 */
-
#define PCI_FIND_CAP_TTL 48
static int __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn,
OpenPOWER on IntegriCloud