struct list_head *l1, *l2, *n1, *n2; struct acpiphp_bridge *bridge; struct acpiphp_slot *slot, *next; struct acpiphp_func *func; acpi_status status;  list_for_each_safe (l1, n1, &bridge_list) { bridge = (struct acpiphp_bridge *)l1; slot = bridge->slots; while (slot) { next = slot->next; list_for_each_safe (l2, n2, &slot->funcs) { func = list_entry(l2, struct acpiphp_func, sibling); acpiphp_free_resource(&func->io_head); acpiphp_free_resource(&func->mem_head); acpiphp_free_resource(&func->p_mem_head); acpiphp_free_resource(&func->bus_head); status = acpi_remove_notify_handler(func->handle, ACPI_SYSTEM_NOTIFY, handle_hotplug_event_func); if (ACPI_FAILURE(status)) err("failed to remove notify handler\n"); kfree(func); } kfree(slot); slot = next; } status = acpi_remove_notify_handler(bridge->handle, ACPI_SYSTEM_NOTIFY, handle_hotplug_event_bridge); if (ACPI_FAILURE(status)) err("failed to remove notify handler\n");  acpiphp_free_resource(&bridge->io_head); acpiphp_free_resource(&bridge->mem_head); acpiphp_free_resource(&bridge->p_mem_head); acpiphp_free_resource(&bridge->bus_head);  kfree(bridge); }  
void __exit acpiphp_glue_exit(void){	struct list_head *l1, *l2, *n1, *n2;	struct acpiphp_bridge *bridge;	struct acpiphp_slot *slot, *next;	struct acpiphp_func *func;	acpi_status status;	list_for_each_safe (l1, n1, &bridge_list) {		bridge = (struct acpiphp_bridge *)l1;		slot = bridge->slots;		while (slot) {			next = slot->next;			list_for_each_safe (l2, n2, &slot->funcs) {				func = list_entry(l2, struct acpiphp_func, sibling);				acpiphp_free_resource(&func->io_head);				acpiphp_free_resource(&func->mem_head);				acpiphp_free_resource(&func->p_mem_head);				acpiphp_free_resource(&func->bus_head);				status = acpi_remove_notify_handler(func->handle,								    ACPI_SYSTEM_NOTIFY,								    handle_hotplug_event_func);				if (ACPI_FAILURE(status))					err("failed to remove notify handler\n");				kfree(func);			}			kfree(slot);			slot = next;		}		status = acpi_remove_notify_handler(bridge->handle, ACPI_SYSTEM_NOTIFY,						    handle_hotplug_event_bridge);		if (ACPI_FAILURE(status))			err("failed to remove notify handler\n");		acpiphp_free_resource(&bridge->io_head);		acpiphp_free_resource(&bridge->mem_head);		acpiphp_free_resource(&bridge->p_mem_head);		acpiphp_free_resource(&bridge->bus_head);		kfree(bridge);	}	acpi_pci_unregister_driver(&acpi_pci_hp_driver);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/42f49a6ae5dca90cd0594475502bf1c43ff1dc07/acpiphp_glue.c/clean/drivers/pci/hotplug/acpiphp_glue.c