pciehp_destroy_board_resources(old_slot);
static int slot_remove(struct pci_func * old_slot){	struct pci_func *next;	if (old_slot == NULL)		return 1;	next = pciehp_slot_list[old_slot->bus];	if (next == NULL)		return 1;	if (next == old_slot) {		pciehp_slot_list[old_slot->bus] = old_slot->next;		pciehp_destroy_board_resources(old_slot);		kfree(old_slot);		return 0;	}	while ((next->next != old_slot) && (next->next != NULL)) {		next = next->next;	}	if (next->next == old_slot) {		next->next = old_slot->next;		pciehp_destroy_board_resources(old_slot);		kfree(old_slot);		return 0;	} else		return 2;}