projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5787392
)
spi: mpc512x: fix error return code in mpc512x_psc_spi_do_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Wed, 11 Sep 2013 11:15:39 +0000
(19:15 +0800)
committer
Mark Brown
<broonie@linaro.org>
Thu, 12 Sep 2013 09:48:57 +0000
(10:48 +0100)
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-mpc512x-psc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-mpc512x-psc.c
b/drivers/spi/spi-mpc512x-psc.c
index dbc5e999a1f5689c1a526ace9f3dc4061f924223..6adf4e35816d76c1c7f120cd924420c4c8bf71a1 100644
(file)
--- a/
drivers/spi/spi-mpc512x-psc.c
+++ b/
drivers/spi/spi-mpc512x-psc.c
@@
-522,8
+522,10
@@
static int mpc512x_psc_spi_do_probe(struct device *dev, u32 regaddr,
psc_num = master->bus_num;
snprintf(clk_name, sizeof(clk_name), "psc%d_mclk", psc_num);
clk = devm_clk_get(dev, clk_name);
- if (IS_ERR(clk))
+ if (IS_ERR(clk)) {
+ ret = PTR_ERR(clk);
goto free_irq;
+ }
ret = clk_prepare_enable(clk);
if (ret)
goto free_irq;