summaryrefslogtreecommitdiffstats
path: root/commands/oftree.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/oftree.c')
-rw-r--r--commands/oftree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/oftree.c b/commands/oftree.c
index 914951735b..00e54dcd7e 100644
--- a/commands/oftree.c
+++ b/commands/oftree.c
@@ -86,7 +86,7 @@ static int do_oftree(int argc, char *argv[])
struct device_node *root = of_get_root_node();
if (root)
- of_free(root);
+ of_delete_node(root);
return 0;
}
@@ -162,7 +162,7 @@ static int do_oftree(int argc, char *argv[])
goto out;
}
of_print_nodes(root, 0);
- of_free(root);
+ of_delete_node(root);
} else {
struct device_node *n = of_find_node_by_path(node);
if (!n) {