]> git.sur5r.net Git - u-boot/commit
dm: core: Add dm_remove_devices_flags() and hook it into device_remove()
authorStefan Roese <sr@denx.de>
Mon, 27 Mar 2017 08:58:53 +0000 (10:58 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Apr 2017 02:15:10 +0000 (20:15 -0600)
commitbc85aa4030ab9ccfc1349c320b085a8b792c602e
treeed90ce03c7f456e194b68c3bbe1edb902602584a
parent706865afe54eee83c1f3d7e9ea2f51db8e986d7b
dm: core: Add dm_remove_devices_flags() and hook it into device_remove()

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@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/device-remove.c
drivers/core/root.c
include/dm/root.h