projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f13d4e1
)
spi: imx: fix error return code in spi_imx_probe()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 28 Sep 2016 14:50:18 +0000
(14:50 +0000)
committer
Mark Brown
<broonie@kernel.org>
Wed, 28 Sep 2016 16:50:55 +0000
(09:50 -0700)
Fix to return error code -EINVAL if no CS GPIOs available
instead of 0, as done elsewhere in this function.
Fixes:
f13d4e189d20
("spi: imx: Gracefully handle NULL master->cs_gpios")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-imx.c
b/drivers/spi/spi-imx.c
index 1ef5429afcb64dc3aab75b15f49a680e96fea981..deb782f6556c119dc8dfe6760510e54df6c0d906 100644
(file)
--- a/
drivers/spi/spi-imx.c
+++ b/
drivers/spi/spi-imx.c
@@
-1270,6
+1270,7
@@
static int spi_imx_probe(struct platform_device *pdev)
if (!master->cs_gpios) {
dev_err(&pdev->dev, "No CS GPIOs available\n");
+ ret = -EINVAL;
goto out_clk_put;
}