gpio: pisosr: add missing unlock
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 19 Feb 2016 09:23:00 +0000 (14:53 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 19 Feb 2016 11:56:13 +0000 (12:56 +0100)
commit3e089d9f55acfe9edd8a71d19cfc3129ab3a37f8
tree231b18f919bc9448fb42ff6f085b0ec94487f9ea
parent8cae5f9740676a46c0b5eb35e60cd13c46b99bd0
gpio: pisosr: add missing unlock

If spi_read() fails then we just returned but we missed unlocking the
mutex.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pisosr.c