efi: Make use of bootm_final()

Call this function from the EFI code. Add the required call to
dm_remove_devices_active() there.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-07-08 07:46:01 +02:00
parent ed1c8186cf
commit 148240871e
2 changed files with 3 additions and 1 deletions

View File

@@ -6,7 +6,9 @@
*/
#include <bootm.h>
#include <dm/root.h>
void bootm_final(enum bootm_final_t flags)
{
dm_remove_devices_active();
}

View File

@@ -2256,7 +2256,7 @@ static efi_status_t EFIAPI efi_exit_boot_services(efi_handle_t image_handle,
if (IS_ENABLED(CONFIG_USB_DEVICE))
udc_disconnect();
board_quiesce_devices();
dm_remove_devices_active();
bootm_final(0);
}
/* Patch out unsupported runtime function */