aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpi_memhotplug.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-15 13:24:13 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-15 13:24:13 +0100
commit05404d8f7b5c831e1a2c24bb782f0fe8ea02354c (patch)
tree907c9119308d98ed919b21339bf399ade8dbf591 /drivers/acpi/acpi_memhotplug.c
parentACPI / scan: Change the implementation of acpi_bus_trim() (diff)
downloadlinux-dev-05404d8f7b5c831e1a2c24bb782f0fe8ea02354c.tar.xz
linux-dev-05404d8f7b5c831e1a2c24bb782f0fe8ea02354c.zip
ACPI / scan: Add second pass to acpi_bus_trim()
Make acpi_bus_trim() work in analogy with acpi_bus_scan() and carry out two passes such that ACPI drivers will be detached from device nodes being removed in the first pass and the device nodes themselves will be removed in the second pass. For this purpose split the driver unregistration out of acpi_bus_remove() into a new routine, acpi_bus_device_detach(), that will be executed by acpi_bus_trim() in the additional first pass as a post-order callback. This is necessary, because some ACPI drivers' .remove() routines unregister struct device objects associated with the ACPI device nodes being removed and that needs to happen while the ACPI device nodes are still around (for example, in case they need to be used for power management or similar things at that time). Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Toshi Kani <toshi.kani@hp.com> Acked-by: Yinghai Lu <yinghai@kernel.org> Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
0 files changed, 0 insertions, 0 deletions