提交 54c4c7db 编写于 作者: W Wen Congyang 提交者: Rafael J. Wysocki

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: NWen Congyang <wency@cn.fujitsu.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 acacb5f2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册