summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-08-09 14:20:53 +0200
committerLinus Walleij <linus.walleij@linaro.org>2013-08-15 22:13:21 +0200
commit7ea46e0f9df44ce3dea5a54f7c182f98eeef7bee (patch)
treefb7086e2c10eb286bb3beb7bb5b300914f193bc1 /drivers/pinctrl
parent5e13762cf8e5a4998c3a80d2265f0c3b3277854e (diff)
downloadop-kernel-dev-7ea46e0f9df44ce3dea5a54f7c182f98eeef7bee.zip
op-kernel-dev-7ea46e0f9df44ce3dea5a54f7c182f98eeef7bee.tar.gz
pinctrl: imx: do not fail when parsing a function fails
When parsing a function fails this is no reason to make the whole driver fail. Just continue with the next function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl-imx.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c
index b8077d9..81ffb17 100644
--- a/drivers/pinctrl/pinctrl-imx.c
+++ b/drivers/pinctrl/pinctrl-imx.c
@@ -550,7 +550,6 @@ static int imx_pinctrl_probe_dt(struct platform_device *pdev,
{
struct device_node *np = pdev->dev.of_node;
struct device_node *child;
- int ret;
u32 nfuncs = 0;
u32 i = 0;
@@ -577,13 +576,8 @@ static int imx_pinctrl_probe_dt(struct platform_device *pdev,
if (!info->groups)
return -ENOMEM;
- for_each_child_of_node(np, child) {
- ret = imx_pinctrl_parse_functions(child, info, i++);
- if (ret) {
- dev_err(&pdev->dev, "failed to parse function\n");
- return ret;
- }
- }
+ for_each_child_of_node(np, child)
+ imx_pinctrl_parse_functions(child, info, i++);
return 0;
}
OpenPOWER on IntegriCloud