summaryrefslogtreecommitdiff
path: root/drivers/core/root.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-04-05 12:28:33 (GMT)
committerTom Rini <trini@konsulko.com>2017-04-05 12:28:33 (GMT)
commit433647a7ef9241b963b4636e7f8c3a2159d156f0 (patch)
tree15008cb530f46b5f9711efa2d9fc550b11ce2905 /drivers/core/root.c
parent7da8680b260b4598d841d9a8432d95d56cb86d9f (diff)
parent239ae4a9129b8b9f24a216e127042b255b07ae59 (diff)
downloadu-boot-433647a7ef9241b963b4636e7f8c3a2159d156f0.tar.xz
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers/core/root.c')
-rw-r--r--drivers/core/root.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/core/root.c b/drivers/core/root.c
index 33cfde6..42679d0 100644
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
@@ -178,12 +178,21 @@ int dm_init(void)
int dm_uninit(void)
{
- device_remove(dm_root());
+ device_remove(dm_root(), DM_REMOVE_NORMAL);
device_unbind(dm_root());
return 0;
}
+#if CONFIG_IS_ENABLED(DM_DEVICE_REMOVE)
+int dm_remove_devices_flags(uint flags)
+{
+ device_remove(dm_root(), flags);
+
+ return 0;
+}
+#endif
+
int dm_scan_platdata(bool pre_reloc_only)
{
int ret;