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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user