]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pinctrl: core: fix missing unlock on error in pinctrl_find_gpio_range_from_pin()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 18 Jun 2013 04:24:58 +0000 (12:24 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 18 Jun 2013 07:41:15 +0000 (09:41 +0200)
commitc8f50e8657a6dd8d6b2a596e4b4659fd77dc1718
treed40fa36760ba5bfda9ee3e001c5cb6a16f51b86f
parent5a68e7a748c03127e6e54c353017cd19bffd2016
pinctrl: core: fix missing unlock on error in pinctrl_find_gpio_range_from_pin()

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

Introduced by commit 2ff3477efd7086544b9e298fc63afab0645921b4.
(pinctrl: add pin list based GPIO ranges)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c