]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: re-enable old state in case of error in pinctrl_select_state
authorRichard Genoud <richard.genoud@gmail.com>
Mon, 25 Mar 2013 14:47:23 +0000 (15:47 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Mar 2013 22:18:28 +0000 (23:18 +0100)
commit50cf7c8ab324de348990bb028ad9ed10872d527a
tree86754978ef05885b409dd28d1eafc6da1ae25151
parent3102a76cfbf9ac4ae0cf54c7452f7ba4292a4760
pinctrl: re-enable old state in case of error in pinctrl_select_state

If a new state is applied, the groups configured in the old state but
not in the new state are disabled.
If something goes wrong and the new state can't be applied, we have to
re-enable those groups.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c