From: Rafael J. Wysocki Date: Thu, 17 Jan 2013 13:11:05 +0000 (+0100) Subject: ACPI / scan: More straightforward preparation of ACPI device objects X-Git-Tag: v3.9-rc1~146^2~10^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d43e167db44b37bb284dc72fff2c3b61bb155752;p=pandora-kernel.git ACPI / scan: More straightforward preparation of ACPI device objects Simplify the code preparing struct acpi_device objects for registration by removing useless code, moving different pieces of code into the functions they belong to and making a couple of int functions always returning 0 void. This also fixes a possible memory leak in ACPI device registration error code path by making acpi_device_register() detach data from device->handle if device_register() fails and prepares the scanning code for special-casing ACPI power resources (next patch). Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed