From: Bjorn Helgaas Date: Mon, 21 Sep 2009 19:29:56 +0000 (+0000) Subject: ACPI: use acpi_walk_namespace() to enumerate devices X-Git-Tag: v2.6.32-rc1~18^2~2^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51a85faf2d4ffecd8384b3f501f9f7ee2b05ee53;p=pandora-kernel.git ACPI: use acpi_walk_namespace() to enumerate devices acpi_bus_scan() currently walks the namespace manually. This patch changes it to use acpi_walk_namespace() instead. Besides removing some complicated code, this means we take advantage of the namespace locking done by acpi_walk_namespace(). The locking isn't so important at boot-time, but I hope to eventually use this same path to handle hot-addition of devices, when it will be important. Note that acpi_walk_namespace() does not actually visit the starting node first, so we need to do that by hand first. Signed-off-by: Bjorn Helgaas Signed-off-by: Len Brown --- Reading git-diff-tree failed