diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-06-13 18:06:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-20 21:20:50 +0200 |
commit | 0b79c3bb641857f5045a42f55f0b90d160706425 (patch) | |
tree | 10ce0b10a34032f30d73337ea48b3f7cdbcffe34 /commands/of_node.c | |
parent | 905f3ee7fb79af91ed42275c995ca0cd04a2a3d6 (diff) | |
download | barebox-0b79c3bb641857f5045a42f55f0b90d160706425.tar.gz barebox-0b79c3bb641857f5045a42f55f0b90d160706425.tar.xz |
OF: base: sync of_find_node_by_path with linux OF API
Barebox of_find_node_by_path requires a node to be passed as start node
to start searching. Linux OF API does not pass this node and no current
user of it in barebox is passing anything else than the root node.
Therefore, we rename current function to of_find_node_by_path_from and
introduce a Linux OF API compatible of_find_node_by_path that always
passes the current root_node. Also, all current users of that function
are updated to reflect the API change.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/of_node.c')
-rw-r--r-- | commands/of_node.c | 2 |
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; |