projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2269f5a
)
spi: stm32: do not mandate cs_gpio
author
Alain Volmat
<alain.volmat@foss.st.com>
Fri, 5 Feb 2021 18:59:26 +0000
(19:59 +0100)
committer
Mark Brown
<broonie@kernel.org>
Fri, 5 Feb 2021 19:16:56 +0000
(19:16 +0000)
CS gpios is not mandatory, the driver should allow working
even when CS are not given.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Link:
https://lore.kernel.org/r/1612551572-495-3-git-send-email-alain.volmat@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-stm32.c
b/drivers/spi/spi-stm32.c
index 6cdecd1c5ec79d2ad62fde26076adfb685944e2d..2b4ea4cba00b2f75c31ae306d3d03a2197b602ed 100644
(file)
--- a/
drivers/spi/spi-stm32.c
+++ b/
drivers/spi/spi-stm32.c
@@
-1944,12
+1944,6
@@
static int stm32_spi_probe(struct platform_device *pdev)
goto err_pm_disable;
}
- if (!master->cs_gpiods) {
- dev_err(&pdev->dev, "no CS gpios available\n");
- ret = -EINVAL;
- goto err_pm_disable;
- }
-
dev_info(&pdev->dev, "driver initialized\n");
return 0;