提交 da58751c 编写于 作者: R Richard Genoud 提交者: Linus Walleij

pinctrl: use dev_info instead of pr_info in pinctrl_select_state_locked

And remove superfluous brackets.
Signed-off-by: NRichard Genoud <richard.genoud@gmail.com>
Reviewed-by: NStephen Warren <swarren@nvidia.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 950707c0
...@@ -956,9 +956,8 @@ static int pinctrl_select_state_locked(struct pinctrl *p, ...@@ -956,9 +956,8 @@ static int pinctrl_select_state_locked(struct pinctrl *p,
break; break;
} }
if (ret < 0) { if (ret < 0)
goto unapply_new_state; goto unapply_new_state;
}
} }
p->state = state; p->state = state;
...@@ -966,7 +965,7 @@ static int pinctrl_select_state_locked(struct pinctrl *p, ...@@ -966,7 +965,7 @@ static int pinctrl_select_state_locked(struct pinctrl *p,
return 0; return 0;
unapply_new_state: unapply_new_state:
pr_info("Error applying setting, reverse things back\n"); dev_err(p->dev, "Error applying setting, reverse things back\n");
/* /*
* If the loop stopped on the 1st entry, nothing has been enabled, * If the loop stopped on the 1st entry, nothing has been enabled,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册