summaryrefslogtreecommitdiffstats
path: root/commands/of_property.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-08-13 16:52:14 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-08-14 10:03:28 +0200
commit7a15e03fca742e35f1a1bc3103015b8965860b94 (patch)
tree2475818c33d65397506a5c5a9d1d475d743870ab /commands/of_property.c
parent6c9e799a00cbdb50fa9129b57a59766010c63ffa (diff)
downloadbarebox-7a15e03fca742e35f1a1bc3103015b8965860b94.tar.gz
of_property command: allow to specify a node by alias
With this not only a full path can be used to specify a node, but also an alias. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/of_property.c')
-rw-r--r--commands/of_property.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/of_property.c b/commands/of_property.c
index 8ffe30b..a544f71 100644
--- a/commands/of_property.c
+++ b/commands/of_property.c
@@ -196,7 +196,7 @@ static int do_of_property(int argc, char *argv[])
if (optind < argc) {
path = argv[optind];
- node = of_find_node_by_path(path);
+ node = of_find_node_by_path_or_alias(NULL, path);
if (!node) {
printf("Cannot find nodepath %s\n", path);
return -ENOENT;