summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-08-13 16:55:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-08-14 10:05:37 +0200
commit7f5c04321d8ee565f374cd630931a0fd1a315ace (patch)
treeb48abd9af3aefdf967e3feb3bc4028424594e17e /commands
parent6d06c4e318382a5c0bc1e2243b77f58d5ecd88ea (diff)
downloadbarebox-7f5c04321d8ee565f374cd630931a0fd1a315ace.tar.gz
barebox-7f5c04321d8ee565f374cd630931a0fd1a315ace.tar.xz
oftree command: Allow to specify node by alias
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/oftree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/oftree.c b/commands/oftree.c
index 00e54dcd7e..475f0199ba 100644
--- a/commands/oftree.c
+++ b/commands/oftree.c
@@ -164,7 +164,7 @@ static int do_oftree(int argc, char *argv[])
of_print_nodes(root, 0);
of_delete_node(root);
} else {
- struct device_node *n = of_find_node_by_path(node);
+ struct device_node *n = of_find_node_by_path_or_alias(NULL, node);
if (!n) {
ret = -ENOENT;
goto out;