]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sunxi: fix error return code in sunxi_pinctrl_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 23 May 2013 09:32:14 +0000 (17:32 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 May 2013 13:37:09 +0000 (15:37 +0200)
commitebde389d03fa5b38d24d81c9009ede22c0020e40
tree46d0cf31ad13ad2b54d3ec51c5a882a1f4dea84b
parent5b6ce9a6ec6d3d4183abc353ac21e83c4275b813
pinctrl: sunxi: fix error return code in sunxi_pinctrl_probe()

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

Introduced by commit 5587bc3bb170dfd124b70e8d5866ee1586ffc9ed
(pinctrl: sunxi: add clock support)

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