summaryrefslogtreecommitdiffstats
path: root/commands/of_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/of_node.c')
-rw-r--r--commands/of_node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/of_node.c b/commands/of_node.c
index 0249d9725b..e60ef66d38 100644
--- a/commands/of_node.c
+++ b/commands/of_node.c
@@ -81,7 +81,7 @@ static int do_of_node(int argc, char *argv[])
if (!path)
return COMMAND_ERROR_USAGE;
- node = of_find_node_by_path(root, path);
+ node = of_find_node_by_path(path);
if (!node) {
printf("Cannot find nodepath %s\n", path);
return -ENOENT;