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>
This commit is contained in:
parent
5e13762cf8
commit
7ea46e0f9d
1 changed files with 2 additions and 8 deletions
|
@ -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 *np = pdev->dev.of_node;
|
||||||
struct device_node *child;
|
struct device_node *child;
|
||||||
int ret;
|
|
||||||
u32 nfuncs = 0;
|
u32 nfuncs = 0;
|
||||||
u32 i = 0;
|
u32 i = 0;
|
||||||
|
|
||||||
|
@ -577,13 +576,8 @@ static int imx_pinctrl_probe_dt(struct platform_device *pdev,
|
||||||
if (!info->groups)
|
if (!info->groups)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
for_each_child_of_node(np, child) {
|
for_each_child_of_node(np, child)
|
||||||
ret = imx_pinctrl_parse_functions(child, info, i++);
|
imx_pinctrl_parse_functions(child, info, i++);
|
||||||
if (ret) {
|
|
||||||
dev_err(&pdev->dev, "failed to parse function\n");
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue