Merge branch '2021-02-02-drop-asm_global_data-when-unused'
[platform/kernel/u-boot.git] / arch / arm / lib / bootm.c
index 70c181e..11af9e2 100644 (file)
@@ -120,6 +120,9 @@ static void announce_and_cleanup(int fake)
         * This may be useful for last-stage operations, like cancelling
         * of DMA operation or releasing device internal buffers.
         */
+       dm_remove_devices_flags(DM_REMOVE_ACTIVE_ALL | DM_REMOVE_NON_VITAL);
+
+       /* Remove all active vital devices next */
        dm_remove_devices_flags(DM_REMOVE_ACTIVE_ALL);
 
        cleanup_before_linux();