diff options
author | Tom Rini <trini@konsulko.com> | 2017-04-05 08:28:33 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-05 08:28:33 -0400 |
commit | 433647a7ef9241b963b4636e7f8c3a2159d156f0 (patch) | |
tree | 15008cb530f46b5f9711efa2d9fc550b11ce2905 /arch/arm/lib | |
parent | 7da8680b260b4598d841d9a8432d95d56cb86d9f (diff) | |
parent | 239ae4a9129b8b9f24a216e127042b255b07ae59 (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'arch/arm/lib')
-rw-r--r-- | arch/arm/lib/bootm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 8125cf023f..426bee6da5 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -14,6 +14,8 @@ #include <common.h> #include <command.h> +#include <dm/device.h> +#include <dm/root.h> #include <image.h> #include <u-boot/zlib.h> #include <asm/byteorder.h> @@ -91,6 +93,13 @@ static void announce_and_cleanup(int fake) board_quiesce_devices(); + /* + * 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_flags(DM_REMOVE_ACTIVE_ALL); + cleanup_before_linux(); } |