aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index 7cc782fec70a..c1001ad81ad4 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -841,6 +841,7 @@ ioapic_add(acpi_handle handle, u32 lvl, void *context, void **rv)
841 841
842static int acpiphp_configure_ioapics(acpi_handle handle) 842static int acpiphp_configure_ioapics(acpi_handle handle)
843{ 843{
844 ioapic_add(handle, 0, NULL, NULL);
844 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, 845 acpi_walk_namespace(ACPI_TYPE_DEVICE, handle,
845 ACPI_UINT32_MAX, ioapic_add, NULL, NULL); 846 ACPI_UINT32_MAX, ioapic_add, NULL, NULL);
846 return 0; 847 return 0;
@@ -1075,7 +1076,8 @@ static int enable_device(struct acpiphp_slot *slot)
1075 pci_bus_assign_resources(bus); 1076 pci_bus_assign_resources(bus);
1076 acpiphp_sanitize_bus(bus); 1077 acpiphp_sanitize_bus(bus);
1077 acpiphp_set_hpp_values(slot->bridge->handle, bus); 1078 acpiphp_set_hpp_values(slot->bridge->handle, bus);
1078 acpiphp_configure_ioapics(slot->bridge->handle); 1079 list_for_each_entry(func, &slot->funcs, sibling)
1080 acpiphp_configure_ioapics(func->handle);
1079 pci_enable_bridges(bus); 1081 pci_enable_bridges(bus);
1080 pci_bus_add_devices(bus); 1082 pci_bus_add_devices(bus);
1081 1083