pinctrl: single: fix error return code in pcs_parse_one_pinctrl_entry()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 May 2013 12:06:19 +0000 (20:06 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 14 May 2013 12:04:14 +0000 (14:04 +0200)
commit18442e65d424dc84a4a4a3b635eb1a52de3cb6b4
tree15d5cc6c17223c64e2d44da452e4af082c24c8fa
parent63ad9cbff5896dadfee510f631ffcb0176984722
pinctrl: single: fix error return code in pcs_parse_one_pinctrl_entry()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Introduced by commit 9dddb4df90d136429b6d6ddefceb49a9b93f6cd1
(pinctrl: single: support generic pinconf)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-single.c