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

pinctrl: pinctrl_select_state: set the old_state back on error

In unapply_new_state, the old state is re-applied, but p->state is not
set back as it should.
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>
上级 8009d5ff
......@@ -991,6 +991,8 @@ static int pinctrl_select_state_locked(struct pinctrl *p,
pinmux_enable_setting(setting);
}
}
p->state = old_state;
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册