浏览代码

pinctrl: imx: do not fail when parsing a group fails

The i.MX pinctrl driver completely bails out when it detects an error
in the pinctrl nodes. This usually means that whatever error a
devicetree has the user is left blind because even the console cannot
be initialized without working pinmux.

Instead of bailing out completely, just continue probing. This makes
the pinctrl driver work, only the erroneous groups will fail later
during pin request time.

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>
Sascha Hauer 12 年之前
父节点
当前提交
5e13762cf8
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      drivers/pinctrl/pinctrl-imx.c

+ 1 - 4
drivers/pinctrl/pinctrl-imx.c

@@ -519,7 +519,6 @@ static int imx_pinctrl_parse_functions(struct device_node *np,
 	struct device_node *child;
 	struct device_node *child;
 	struct imx_pmx_func *func;
 	struct imx_pmx_func *func;
 	struct imx_pin_group *grp;
 	struct imx_pin_group *grp;
-	int ret;
 	static u32 grp_index;
 	static u32 grp_index;
 	u32 i = 0;
 	u32 i = 0;
 
 
@@ -540,9 +539,7 @@ static int imx_pinctrl_parse_functions(struct device_node *np,
 	for_each_child_of_node(np, child) {
 	for_each_child_of_node(np, child) {
 		func->groups[i] = child->name;
 		func->groups[i] = child->name;
 		grp = &info->groups[grp_index++];
 		grp = &info->groups[grp_index++];
-		ret = imx_pinctrl_parse_groups(child, grp, info, i++);
-		if (ret)
-			return ret;
+		imx_pinctrl_parse_groups(child, grp, info, i++);
 	}
 	}
 
 
 	return 0;
 	return 0;