/* to be overridden when we decode _CRS	*/ bridge->sub = bridge->bus;  /* decode resources */  status = acpi_walk_resources(handle, METHOD_NAME__CRS, decode_acpi_resource, bridge);  if (ACPI_FAILURE(status)) { err("failed to decode bridge resources\n"); kfree(bridge); return; }  acpiphp_resource_sort_and_combine(&bridge->io_head); acpiphp_resource_sort_and_combine(&bridge->mem_head); acpiphp_resource_sort_and_combine(&bridge->p_mem_head); acpiphp_resource_sort_and_combine(&bridge->bus_head);  dbg("ACPI _CRS resource:\n"); acpiphp_dump_resource(bridge);  if (bridge->bus_head) { bridge->bus = bridge->bus_head->base; bridge->sub = bridge->bus_head->base + bridge->bus_head->length - 1; }  
static void add_host_bridge(acpi_handle *handle, int seg, int bus){	acpi_status status;	struct acpiphp_bridge *bridge;	bridge = kmalloc(sizeof(struct acpiphp_bridge), GFP_KERNEL);	if (bridge == NULL)		return;	memset(bridge, 0, sizeof(struct acpiphp_bridge));	bridge->type = BRIDGE_TYPE_HOST;	bridge->handle = handle;	bridge->seg = seg;	bridge->bus = bus;	bridge->pci_bus = pci_find_bus(seg, bus);	spin_lock_init(&bridge->res_lock);	/* to be overridden when we decode _CRS	*/	bridge->sub = bridge->bus;	/* decode resources */	status = acpi_walk_resources(handle, METHOD_NAME__CRS,		decode_acpi_resource, bridge);	if (ACPI_FAILURE(status)) {		err("failed to decode bridge resources\n");		kfree(bridge);		return;	}	acpiphp_resource_sort_and_combine(&bridge->io_head);	acpiphp_resource_sort_and_combine(&bridge->mem_head);	acpiphp_resource_sort_and_combine(&bridge->p_mem_head);	acpiphp_resource_sort_and_combine(&bridge->bus_head);	dbg("ACPI _CRS resource:\n");	acpiphp_dump_resource(bridge);	if (bridge->bus_head) {		bridge->bus = bridge->bus_head->base;		bridge->sub = bridge->bus_head->base + bridge->bus_head->length - 1;	}	init_bridge_misc(bridge);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/42f49a6ae5dca90cd0594475502bf1c43ff1dc07/acpiphp_glue.c/buggy/drivers/pci/hotplug/acpiphp_glue.c