mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
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: Richard Genoud <richard.genoud@gmail.com> Reviewed-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
8009d5ff00
commit
175ca83c0b
1 changed files with 2 additions and 0 deletions
|
@ -991,6 +991,8 @@ static int pinctrl_select_state_locked(struct pinctrl *p,
|
|||
pinmux_enable_setting(setting);
|
||||
}
|
||||
}
|
||||
|
||||
p->state = old_state;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue