]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI: remove pci_max_busnr() (was already commented out)
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 18 May 2012 22:52:34 +0000 (16:52 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 11 Jun 2012 17:23:35 +0000 (11:23 -0600)
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

index de9386da2eb2386140fbc268f99628326de12e6c..2cc53acad26ad1f2ad0de098628e2bef0bfdbc1f 100644 (file)
@@ -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,