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:
@@ -6,7 +6,9 @@
|
||||
*/
|
||||
|
||||
#include <bootm.h>
|
||||
#include <dm/root.h>
|
||||
|
||||
void bootm_final(enum bootm_final_t flags)
|
||||
{
|
||||
dm_remove_devices_active();
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user