/* Remove all devices on the bus, except for the parent bridge. This also removes any child buses, and any devices they may contain in a depth-first manner.  */
void pci_remove_behind_bridge(struct pci_dev *dev)
/* Remove all devices on the bus, except for the parent bridge. This also removes any child buses, and any devices they may contain in a depth-first manner.  */
void pci_remove_behind_bridge(struct pci_dev *dev)
{
	struct list_head *l, *n;
	if (dev->subordinate)
		list_for_each_safe(l, n, &dev->subordinate->devices)
			pci_remove_bus_device(pci_dev_b(l));
}