dm: core: Add a function to create an empty tree
Provide a function to create a new, empty tree.
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/include/of_live.h b/include/of_live.h
index 05e86ac..81cb9bd 100644
--- a/include/of_live.h
+++ b/include/of_live.h
@@ -46,4 +46,12 @@
*/
void of_live_free(struct device_node *root);
+/**
+ * of_live_create_empty() - Create a new, empty tree
+ *
+ * @rootp: Returns the root node of the created tree
+ * Return: 0 if OK, -ENOMEM if out of memory
+ */
+int of_live_create_empty(struct device_node **rootp);
+
#endif