Patchwork [2/3] PCI: remove pci_max_busnr() (was already commented out)

login
register
mail settings
Submitter Bjorn Helgaas
Date May 8, 2012, 11:46 p.m.
Message ID <20120508234611.2085.95132.stgit@bhelgaas.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/157834/
State Accepted
Headers show

Comments

Bjorn Helgaas - May 8, 2012, 11:46 p.m.
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>
---
 drivers/pci/pci.c |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 69c21f0..09cd709 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -135,30 +135,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,