projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ccbc60
)
pinctrl: sunxi: fix error return code in sunxi_pinctrl_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Thu, 23 May 2013 09:32:14 +0000
(17:32 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 27 May 2013 13:37:09 +0000
(15:37 +0200)
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
950707c0eb5c7aeaa2c446a04c824f4be686d2f6
(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
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-sunxi.c
b/drivers/pinctrl/pinctrl-sunxi.c
index
c058529
..
b7d8c89
100644
(file)
--- a/
drivers/pinctrl/pinctrl-sunxi.c
+++ b/
drivers/pinctrl/pinctrl-sunxi.c
@@
-1990,8
+1990,10
@@
static int sunxi_pinctrl_probe(struct platform_device *pdev)
}
clk = devm_clk_get(&pdev->dev, NULL);
- if (IS_ERR(clk))
+ if (IS_ERR(clk)) {
+ ret = PTR_ERR(clk);
goto gpiochip_error;
+ }
clk_prepare_enable(clk);