riscv: bootm: Add dm_remove_devices_flags() call to do_bootm_linux()
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:20:59 +0000 (02:20 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commitb1893a9e0def4052e56513bfcee0a0eb95841f7f
tree6e8f7a87c6d54f7ec693b8d707d609db6f794dcb
parentd92878aa4089e1c91f8a6cb7b9655cd27e6ea23c
riscv: bootm: Add dm_remove_devices_flags() call to do_bootm_linux()

This adds a call to dm_remove_devices_flags() to do_bootm_linux()
so that drivers that have one of the removal flags set (e.g.
DM_FLAG_ACTIVE_DMA_REMOVE) in their driver struct, may do some
last-stage cleanup before the OS is started.

arm and x86 already did such, and we should do the same for riscv.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/riscv/lib/bootm.c