[PATCH v2 2/9] bootm: Remove active devices in bootm_final()

Tom Rini trini at konsulko.com
Tue Feb 24 17:05:26 CET 2026


On Tue, Feb 24, 2026 at 07:25:44AM -0700, Simon Glass wrote:

> Add a call to dm_remove_devices_active() there to ensure that active
> devices are removed.
> 
> Signed-off-by: Simon Glass <simon.glass at canonical.com>
> ---
> 
> Changes in v2:
> - Replace 'efi: Make use of bootm_final()' with a non-EFI patch
> 
>  boot/bootm_final.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/boot/bootm_final.c b/boot/bootm_final.c
> index 15ddbbe5e74..263cd95dcb3 100644
> --- a/boot/bootm_final.c
> +++ b/boot/bootm_final.c
> @@ -6,7 +6,9 @@
>   */
>  
>  #include <bootm.h>
> +#include <dm/root.h>
>  
>  void bootm_final(enum bootm_final_t flags)
>  {
> +	dm_remove_devices_active();
>  }

And lets just make the function be introduced non-empty, and document
what it's doing in the header too. In fact, this comment applies to the
first few parts of this series. Just introduce the function with the
basic and common to all functionality.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260224/795523fd/attachment.sig>


More information about the U-Boot mailing list