summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpi_memhotplug.c
diff options
context:
space:
mode:
authorWen Congyang <wency@cn.fujitsu.com>2012-11-15 00:22:27 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-15 00:22:27 +0100
commit54c4c7db6cb94d7d1217df6d7fca6847c61744ab (patch)
tree58fdfcd0a8a68bda5b546004f200190b8f06fd95 /drivers/acpi/acpi_memhotplug.c
parentacacb5f211e99fa2c98cf4ef4c632ab43724adb6 (diff)
downloadblackbird-op-linux-54c4c7db6cb94d7d1217df6d7fca6847c61744ab.tar.gz
blackbird-op-linux-54c4c7db6cb94d7d1217df6d7fca6847c61744ab.zip
ACPI / memory-hotplug: call acpi_bus_trim() to remove memory device
The memory device has been ejected and powoffed, so we can call acpi_bus_trim() to remove the memory device from acpi bus. Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r--drivers/acpi/acpi_memhotplug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
index 24c807f96636..1e90e8f01007 100644
--- a/drivers/acpi/acpi_memhotplug.c
+++ b/drivers/acpi/acpi_memhotplug.c
@@ -401,8 +401,9 @@ static void acpi_memory_device_notify(acpi_handle handle, u32 event, void *data)
}
/*
- * TBD: Invoke acpi_bus_remove to cleanup data structures
+ * Invoke acpi_bus_trim() to remove memory device
*/
+ acpi_bus_trim(device, 1);
/* _EJ0 succeeded; _OST is not necessary */
return;
OpenPOWER on IntegriCloud