dbg("%s - exit, rc = %d", __FUNCTION__, rc); return rc; 
if (slot->dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { pci_read_config_byte(slot->dev, PCI_SECONDARY_BUS, &busnr); child = pci_add_new_bus(slot->dev->bus, slot->dev, busnr); pci_do_scan_bus(child); pci_bus_size_bridges(child); }  pci_bus_assign_resources(slot->dev->bus);  cpci_enable_device(slot->dev);  dbg("%s - exit", __FUNCTION__); return 0; 
int cpci_configure_slot(struct slot* slot){	int rc = 0;	dbg("%s - enter", __FUNCTION__);	if(slot->dev == NULL) {		dbg("pci_dev null, finding %02x:%02x:%x",		    slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn));		slot->dev = pci_find_slot(slot->bus->number, slot->devfn);	}	/* Still NULL? Well then scan for it! */	if(slot->dev == NULL) {		int n;		dbg("pci_dev still null");		/*		 * This will generate pci_dev structures for all functions, but		 * we will only call this case when lookup fails.		 */		n = pci_scan_slot(slot->bus, slot->devfn);		dbg("%s: pci_scan_slot returned %d", __FUNCTION__, n);		if(n > 0)			pci_bus_add_devices(slot->bus);		slot->dev = pci_find_slot(slot->bus->number, slot->devfn);		if(slot->dev == NULL) {			err("Could not find PCI device for slot %02x", slot->number);			return 0;		}	}	dbg("slot->dev = %p", slot->dev);	if(slot->dev) {		struct pci_dev *dev;		struct pci_dev_wrapped wrapped_dev;		struct pci_bus_wrapped wrapped_bus;		int i;		memset(&wrapped_dev, 0, sizeof (struct pci_dev_wrapped));		memset(&wrapped_bus, 0, sizeof (struct pci_bus_wrapped));		for (i = 0; i < 8; i++) {			dev = pci_find_slot(slot->bus->number,					    PCI_DEVFN(PCI_SLOT(slot->dev->devfn), i));			if(!dev)				continue;			wrapped_dev.dev = dev;			wrapped_bus.bus = slot->dev->bus;			if(i)				wrapped_dev.data = NULL;			else				wrapped_dev.data = (void*) slot;			rc = pci_visit_dev(&configure_functions, &wrapped_dev, &wrapped_bus);		}	}	dbg("%s - exit, rc = %d", __FUNCTION__, rc);	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/43b7d7cfb157b5c8c5cc0933f4e96fd81adc81ca/cpci_hotplug_pci.c/buggy/drivers/pci/hotplug/cpci_hotplug_pci.c