summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlain Volmat <alain.volmat@foss.st.com>2021-02-05 21:59:26 +0300
committerMark Brown <broonie@kernel.org>2021-02-05 22:16:56 +0300
commit8f8d0e3e33e36ba63416cad64b9a9ad6b0129eed (patch)
tree864ae503104f7fa8af81e5f74af60096dd31b7a9 /drivers
parent2269f5a8b1a7b38651d62676b98182828f29d11a (diff)
downloadlinux-8f8d0e3e33e36ba63416cad64b9a9ad6b0129eed.tar.xz
spi: stm32: do not mandate cs_gpio
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/spi-stm32.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c
index 6cdecd1c5ec7..2b4ea4cba00b 100644
--- 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;