diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index e4b7f2bc94df..05e463db11de 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -788,25 +788,6 @@ static void acpiphp_sanitize_bus(struct pci_bus *bus) | |||
788 | * ACPI event handlers | 788 | * ACPI event handlers |
789 | */ | 789 | */ |
790 | 790 | ||
791 | static acpi_status | ||
792 | check_sub_bridges(acpi_handle handle, u32 lvl, void *context, void **rv) | ||
793 | { | ||
794 | struct acpiphp_bridge *bridge; | ||
795 | char objname[64]; | ||
796 | struct acpi_buffer buffer = { .length = sizeof(objname), | ||
797 | .pointer = objname }; | ||
798 | |||
799 | bridge = acpiphp_handle_to_bridge(handle); | ||
800 | if (bridge) { | ||
801 | acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer); | ||
802 | dbg("%s: re-enumerating slots under %s\n", | ||
803 | __func__, objname); | ||
804 | acpiphp_check_bridge(bridge); | ||
805 | put_bridge(bridge); | ||
806 | } | ||
807 | return AE_OK ; | ||
808 | } | ||
809 | |||
810 | void acpiphp_check_host_bridge(acpi_handle handle) | 791 | void acpiphp_check_host_bridge(acpi_handle handle) |
811 | { | 792 | { |
812 | struct acpiphp_bridge *bridge; | 793 | struct acpiphp_bridge *bridge; |
@@ -816,9 +797,6 @@ void acpiphp_check_host_bridge(acpi_handle handle) | |||
816 | acpiphp_check_bridge(bridge); | 797 | acpiphp_check_bridge(bridge); |
817 | put_bridge(bridge); | 798 | put_bridge(bridge); |
818 | } | 799 | } |
819 | |||
820 | acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, | ||
821 | ACPI_UINT32_MAX, check_sub_bridges, NULL, NULL, NULL); | ||
822 | } | 800 | } |
823 | 801 | ||
824 | static void hotplug_event(acpi_handle handle, u32 type, void *data) | 802 | static void hotplug_event(acpi_handle handle, u32 type, void *data) |
@@ -846,9 +824,6 @@ static void hotplug_event(acpi_handle handle, u32 type, void *data) | |||
846 | dbg("%s: re-enumerating slots under %s\n", __func__, objname); | 824 | dbg("%s: re-enumerating slots under %s\n", __func__, objname); |
847 | if (bridge) { | 825 | if (bridge) { |
848 | acpiphp_check_bridge(bridge); | 826 | acpiphp_check_bridge(bridge); |
849 | acpi_walk_namespace(ACPI_TYPE_DEVICE, handle, | ||
850 | ACPI_UINT32_MAX, check_sub_bridges, | ||
851 | NULL, NULL, NULL); | ||
852 | } else { | 827 | } else { |
853 | struct acpiphp_slot *slot = func->slot; | 828 | struct acpiphp_slot *slot = func->slot; |
854 | 829 | ||