]> git.baikalelectronics.ru Git - kernel.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)
commit9b2bd1dfa7b9a0220f61952aa03ffcdcc95d40c3
tree86754978ef05885b409dd28d1eafc6da1ae25151
parentf88e9a31b874f79fafd2aa95bf87f512fba63c1a
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