/* Remove devices for which we could not assign resources, call arch specific code to fix-up the bus  */
static void acpiphp_sanitize_bus(struct pci_bus *bus)
/* Remove devices for which we could not assign resources, call arch specific code to fix-up the bus  */
static void acpiphp_sanitize_bus(struct pci_bus *bus)
{
	struct pci_dev *dev;
	int i;
	unsigned long type_mask = IORESOURCE_IO | IORESOURCE_MEM;
	list_for_each_entry(dev, &bus->devices, bus_list) {
		for (i=0; i<PCI_BRIDGE_RESOURCES; i++) {
			struct resource *res = &dev->resource[i];
			if ((res->flags & type_mask) && !res->start &&
					res->end) {
				pci_remove_bus_device(dev);
				break;
			}
		}
	}
}