From: Rafael J. Wysocki Date: Sat, 19 Jan 2013 00:27:35 +0000 (+0100) Subject: ACPI / scan: Drop acpi_bus_add() and use acpi_bus_scan() instead X-Git-Tag: v3.9-rc1~82^2~8^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8bd759acd05281abf88cddef30c57313c109697;p=pandora-kernel.git ACPI / scan: Drop acpi_bus_add() and use acpi_bus_scan() instead The only difference between acpi_bus_scan() and acpi_bus_add() is the invocation of acpi_update_all_gpes() in the latter which in fact is unnecessary, because acpi_update_all_gpes() has already been called by acpi_scan_init() and the way it is implemented guarantees the next invocations of it to do nothing. For this reason, drop acpi_bus_add() and make all its callers use acpi_bus_scan() directly instead of it. Additionally, rearrange the code in acpi_scan_init() slightly to improve the visibility of the acpi_update_all_gpes() call in there. Signed-off-by: Rafael J. Wysocki Acked-by: Yinghai Lu --- Reading git-diff-tree failed