pinctrl: adi2: Fix dead lock in adi_gpio_direction_output
authorAxel Lin <axel.lin@ingics.com>
Tue, 24 Sep 2013 07:47:41 +0000 (15:47 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 27 Sep 2013 12:19:59 +0000 (14:19 +0200)
commitfe4315c3b0cbd4ae5a0b7fcf42c265ed03e27d7a
tree61f38c653c217ab1bc930d1a15f29bb57348b0ac
parentc8690d6d2957ed060c1cba4cde3ec41e3829651b
pinctrl: adi2: Fix dead lock in adi_gpio_direction_output

Current code hold port->lock spinlock and then try to grab the lock again
in adi_gpio_set_value(). Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-adi2.c