[PATCH 7/7] oftree command: Allow to specify node by alias
Sascha Hauer
s.hauer at pengutronix.de
Wed Aug 14 04:11:25 EDT 2013
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
commands/oftree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/oftree.c b/commands/oftree.c
index 00e54dc..475f019 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;
--
1.8.4.rc2
More information about the barebox
mailing list