bootm: Call cleanup_before_linux() from bootm_final()

Add this call to the bootm_final() function, dropping it from RISC-V

Add a flag to ensure that cleanup_before_linux() is not called when
booting an EFI app.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-07-12 14:10:24 +02:00
parent 7482087639
commit 490dbf1968
4 changed files with 6 additions and 2 deletions

View File

@@ -31,4 +31,7 @@ void bootm_final(enum bootm_final_t flags)
* of DMA operation or releasing device internal buffers.
*/
dm_remove_devices_active();
if (!(flags & BOOTM_FINAL_NO_CLEANUP))
cleanup_before_linux();
}