Skip to content

Commit

Permalink
ACPI: enumerate namespace before adding functional fixed hardware dev…
Browse files Browse the repository at this point in the history
…ices

This patch changes the order so we enumerate in the "root, namespace,
functional fixed" order instead of the "root, functional fixed, namespace"
order.  When I change acpi_bus_scan() to use acpi_walk_namespace(), it
will use the former order, so this patch isolates the order change for
bisectability.

Signed-off-by: Bjorn Helgaas <[email protected]>
Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
Bjorn Helgaas authored and lenb committed Sep 25, 2009
1 parent 8e029bf commit adc08e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1650,10 +1650,10 @@ int __init acpi_scan_init(void)
/*
* Enumerate devices in the ACPI namespace.
*/
result = acpi_bus_scan_fixed();
result = acpi_bus_scan(acpi_root->handle, &ops);

if (!result)
result = acpi_bus_scan(acpi_root->handle, &ops);
result = acpi_bus_scan_fixed();

if (result)
acpi_device_unregister(acpi_root, ACPI_BUS_REMOVAL_NORMAL);
Expand Down

0 comments on commit adc08e2

Please sign in to comment.