pinctrl: single: Fix missing unlock on error path
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 11 Jul 2018 12:33:31 +0000 (12:33 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Jul 2018 08:50:05 +0000 (10:50 +0200)
commit673ba5a05ca14c2ddef038044768a4acd0ae0a53
tree92d3a0bb08baa53ae40997a39bee22954c6aee92
parent93639058b2af462a9871159be1afe60eab59431e
pinctrl: single: Fix missing unlock on error path

Add the missing unlock before return from function
in the error handling case.

Fixes: 0f5972033509 ("pinctrl: single: Fix group and function selector use")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-single.c