Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54c4c7db authored by Wen Congyang's avatar Wen Congyang Committed by Rafael J. Wysocki
Browse files

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: default avatarWen Congyang <wency@cn.fujitsu.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent acacb5f2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;