diff options
author | 2013-01-17 14:11:05 +0100 | |
---|---|---|
committer | 2013-01-17 14:11:05 +0100 | |
commit | d43e167db44b37bb284dc72fff2c3b61bb155752 (patch) | |
tree | 7ae48a798412e10a9531932080489e2a57836989 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ACPI / PM: Rework the handling of devices depending on power resources (diff) | |
download | linux-dev-d43e167db44b37bb284dc72fff2c3b61bb155752.tar.xz linux-dev-d43e167db44b37bb284dc72fff2c3b61bb155752.zip |
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 <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions