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)
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>

No differences found