Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] acpiphp: fix bridge handle

When hotplug slot is under the host bridge,
DEVICE_ACPI_HANDLE(&bus->self->dev) fails since '&bus->self' was not set.
This patch fixes it.

This patch is based on kristen's latest patches.
I tested this patch on my Tiger4.

Signed-off-by: MUNEDA Takahiro <muneda.takahiro@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

MUNEDA Takahiro and committed by
Greg Kroah-Hartman
0cccd0c2 e27da381

+2 -2
+2 -2
drivers/pci/hotplug/acpiphp_glue.c
··· 972 972 acpiphp_sanitize_bus(bus); 973 973 pci_enable_bridges(bus); 974 974 pci_bus_add_devices(bus); 975 - acpiphp_set_hpp_values(DEVICE_ACPI_HANDLE(&bus->self->dev), bus); 976 - acpiphp_configure_ioapics(DEVICE_ACPI_HANDLE(&bus->self->dev)); 975 + acpiphp_set_hpp_values(slot->bridge->handle, bus); 976 + acpiphp_configure_ioapics(slot->bridge->handle); 977 977 978 978 /* associate pci_dev to our representation */ 979 979 list_for_each (l, &slot->funcs) {