]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
x86: Call bootm_final()
authorSimon Glass <simon.glass@canonical.com>
Fri, 6 Mar 2026 02:36:14 +0000 (19:36 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 18 Mar 2026 19:17:34 +0000 (13:17 -0600)
The x86 code in bootm_announce_and_cleanup() is very similar to the new
bootm_final() function, so just use the latter.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
arch/x86/lib/bootm.c

index 7a94dc877e31dc8c02131699b9318c35e4fcfe79..cde4fbf35574a267b856a668659ece7e0a36367f 100644 (file)
@@ -34,22 +34,10 @@ DECLARE_GLOBAL_DATA_PTR;
 
 void bootm_announce_and_cleanup(void)
 {
-       printf("\nStarting kernel ...\n\n");
-
 #ifdef CONFIG_SYS_COREBOOT
        timestamp_add_now(TS_START_KERNEL);
 #endif
-       bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel");
-#if IS_ENABLED(CONFIG_BOOTSTAGE_REPORT)
-       bootstage_report();
-#endif
-
-       /*
-        * Call remove function of all devices with a removal flag set.
-        * This may be useful for last-stage operations, like cancelling
-        * of DMA operation or releasing device internal buffers.
-        */
-       dm_remove_devices_active();
+       bootm_final(0);
 }
 
 #if defined(CONFIG_OF_LIBFDT) && !defined(CONFIG_OF_NO_KERNEL)