summaryrefslogtreecommitdiff
path: root/drivers/acpi/power.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-17 14:11:05 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-17 14:11:05 +0100
commitd43e167db44b37bb284dc72fff2c3b61bb155752 (patch)
tree7ae48a798412e10a9531932080489e2a57836989 /drivers/acpi/power.c
parentbc9b6407bd6df3ab7189e5622816bbc11ae9d2d8 (diff)
downloadlinux-rt-d43e167db44b37bb284dc72fff2c3b61bb155752.tar.gz
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 'drivers/acpi/power.c')
0 files changed, 0 insertions, 0 deletions