diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-07-02 20:14:39 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-05 08:26:57 +0200 |
commit | cf31688b6a6981bf6e66ec8587d0ccf3dd72a594 (patch) | |
tree | f3ac10f4eb4d3a62a80ca3dd4d8c9cf87abc6f8c /commands/oftree.c | |
parent | b73f70bb1ab2d80f741f82eccd2f44cd88eaa215 (diff) | |
download | barebox-cf31688b6a6981bf6e66ec8587d0ccf3dd72a594.tar.gz barebox-cf31688b6a6981bf6e66ec8587d0ccf3dd72a594.tar.xz |
OF: base: rename of_free to of_delete_node
of_free is misleading about the actual purpose of the function. There is
already a of_create_node counterpart, so rename of_free to of_create_node
and update all users accordingly.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/oftree.c')
-rw-r--r-- | commands/oftree.c | 4 |
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) { |