pinctrl: disable and free setting in select_state in case of error
authorRichard Genoud <richard.genoud@gmail.com>
Mon, 25 Mar 2013 14:47:22 +0000 (15:47 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Mar 2013 22:17:12 +0000 (23:17 +0100)
commit3102a76cfbf9ac4ae0cf54c7452f7ba4292a4760
treec7ae2486f3c0cd31476546993906de4f9b199315
parentd3cee8305b48316ea416a73c763be3cb04bbc82b
pinctrl: disable and free setting in select_state in case of error

If enabling a pin fails in pinctrl_select_state_locked(), all the
previous enabled pins have to be disabled to get back to the previous
state.

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