summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-06-18 11:21:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-20 17:18:01 +0200
commit905f3ee7fb79af91ed42275c995ca0cd04a2a3d6 (patch)
treee0fedd24976a5d6bd008034dc968dd0a8fa8cc19 /commands
parent03e0e78bf6b436d9e52c97ddfa9dec7a11f9b67b (diff)
downloadbarebox-905f3ee7fb79af91ed42275c995ca0cd04a2a3d6.tar.gz
barebox-905f3ee7fb79af91ed42275c995ca0cd04a2a3d6.tar.xz
OF: base: sync of_find_property with linux OF API
To start synchronizing OF API of barebox with linux OF API, this adds a length pointer to of_find_property. Also all current users of that function are updated to reflect the API change. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Diffstat (limited to 'commands')
-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 44bb38801e..d1a9a17c55 100644
--- a/commands/of_property.c
+++ b/commands/of_property.c
@@ -212,7 +212,7 @@ static int do_of_property(int argc, char *argv[])
if (optind + 1 < argc) {
propname = argv[optind + 1];
- pp = of_find_property(node, propname);
+ pp = of_find_property(node, propname, NULL);
if (!set && !pp) {
printf("Cannot find property %s\n", propname);
return -ENOENT;