/* Given a PCI bus, returns the highest PCI bus number present in the set including the given PCI bus and its list of child PCI buses.  */
unsigned char pci_bus_max_busnr(struct pci_bus *bus)
/* Given a PCI bus, returns the highest PCI bus number present in the set including the given PCI bus and its list of child PCI buses.  */
unsigned char pci_bus_max_busnr(struct pci_bus *bus)
{
	struct list_head *tmp;
	unsigned char max, n;
	max = bus->subordinate;
	list_for_each(tmp, &bus->children) {
		n = pci_bus_max_busnr(pci_bus_b(tmp));
		if(n > max)
			max = n;
	}
	return max;
}