/* acpiphp_max_busnr - return the highest reserved bus number under the given bus. @bus: bus to start search with  */
static unsigned char acpiphp_max_busnr(struct pci_bus *bus)
/* acpiphp_max_busnr - return the highest reserved bus number under the given bus. @bus: bus to start search with  */
static unsigned char acpiphp_max_busnr(struct pci_bus *bus)
{
	struct list_head *tmp;
	unsigned char max, n;
	max = bus->secondary;
	list_for_each(tmp, &bus->children) {
		n = pci_bus_max_busnr(pci_bus_b(tmp));
		if (n > max)
			max = n;
	}
	return max;
}