]> git.sur5r.net Git - u-boot/blobdiff - drivers/core/root.c
dm: core: Add dm_remove_devices_flags() and hook it into device_remove()
[u-boot] / drivers / core / root.c
index d8c51fb496f10d2c6f7a2412093160b286da86d1..42679d047cfa0522988576fc10b360c04e972ce3 100644 (file)
@@ -184,6 +184,15 @@ int dm_uninit(void)
        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;