summaryrefslogtreecommitdiffstats
path: root/drivers/usb/imx/chipidea-imx.c
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/usb/imx/chipidea-imx.c
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/usb/imx/chipidea-imx.c')
-rw-r--r--drivers/usb/imx/chipidea-imx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea-imx.c
index 4ee76101f7..c552b4e324 100644
--- a/drivers/usb/imx/chipidea-imx.c
+++ b/drivers/usb/imx/chipidea-imx.c
@@ -108,7 +108,8 @@ static int imx_chipidea_probe_dt(struct imx_chipidea *ci)
return -EINVAL;
}
- if (of_find_property(ci->dev->device_node, "disable-over-current"))
+ if (of_find_property(ci->dev->device_node,
+ "disable-over-current", NULL))
ci->flags |= MXC_EHCI_DISABLE_OVERCURRENT;
return 0;