[U-Boot] [PATCH 2/3] dm: core: Add dm_remove_devices_flags() and hook it into device_remove()

Simon Glass sjg at chromium.org
Mon Mar 13 12:33:56 UTC 2017


On 10 March 2017 at 06:50, Stefan Roese <sr at denx.de> wrote:
> The new function dm_remove_devices_flags() is intented for driver specific
> last-stage cleanup operations before the OS is started. This patch adds
> this functionality and hooks it into the common device_remove()
> function.
>
> Drivers wanting to use this feature for some last-stage removal calls,
> need to add one of the DM_REMOVE_xx flags to their driver .flags.
>
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>  drivers/core/device-remove.c | 15 +++++++++++----
>  drivers/core/root.c          |  7 +++++++
>  include/dm/root.h            | 12 ++++++++++++
>  3 files changed, 30 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list