Commit 0cccd0c2 authored by MUNEDA Takahiro's avatar MUNEDA Takahiro Committed by Greg Kroah-Hartman

[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: default avatarMUNEDA Takahiro <muneda.takahiro@jp.fujitsu.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e27da381
...@@ -972,8 +972,8 @@ static int enable_device(struct acpiphp_slot *slot) ...@@ -972,8 +972,8 @@ static int enable_device(struct acpiphp_slot *slot)
acpiphp_sanitize_bus(bus); acpiphp_sanitize_bus(bus);
pci_enable_bridges(bus); pci_enable_bridges(bus);
pci_bus_add_devices(bus); pci_bus_add_devices(bus);
acpiphp_set_hpp_values(DEVICE_ACPI_HANDLE(&bus->self->dev), bus); acpiphp_set_hpp_values(slot->bridge->handle, bus);
acpiphp_configure_ioapics(DEVICE_ACPI_HANDLE(&bus->self->dev)); acpiphp_configure_ioapics(slot->bridge->handle);
/* associate pci_dev to our representation */ /* associate pci_dev to our representation */
list_for_each (l, &slot->funcs) { list_for_each (l, &slot->funcs) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment