From 2aec5f446763fe9075a9625f8197efdd19f9d7f3 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 12 Oct 2017 12:26:57 +0200 Subject: of: base: add function to copy a device tree node Signed-off-by: Michael Olbrich Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- include/of.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/of.h') diff --git a/include/of.h b/include/of.h index 9ba771a395..18a423241b 100644 --- a/include/of.h +++ b/include/of.h @@ -144,6 +144,8 @@ extern struct device_node *of_new_node(struct device_node *parent, const char *name); extern struct device_node *of_create_node(struct device_node *root, const char *path); +extern struct device_node *of_copy_node(struct device_node *parent, + const struct device_node *other); extern void of_delete_node(struct device_node *node); extern int of_machine_is_compatible(const char *compat); -- cgit v1.2.3