summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
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 /drivers/pinctrl
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 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl.c b/drivers/pinctrl/pinctrl.c
index fa979a1b78..7c797d35bc 100644
--- a/drivers/pinctrl/pinctrl.c
+++ b/drivers/pinctrl/pinctrl.c
@@ -64,14 +64,14 @@ int pinctrl_select_state(struct device_d *dev, const char *name)
if (!np)
return 0;
- if (!of_find_property(np, "pinctrl-0"))
+ if (!of_find_property(np, "pinctrl-0", NULL))
return 0;
/* For each defined state ID */
for (state = 0; ; state++) {
/* Retrieve the pinctrl-* property */
propname = asprintf("pinctrl-%d", state);
- prop = of_find_property(np, propname);
+ prop = of_find_property(np, propname, NULL);
free(propname);
if (!prop) {