未验证 提交 8f8d0e3e 编写于 作者: A Alain Volmat 提交者: Mark Brown

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: NAlain Volmat <alain.volmat@foss.st.com>
Link: https://lore.kernel.org/r/1612551572-495-3-git-send-email-alain.volmat@foss.st.comSigned-off-by: NMark Brown <broonie@kernel.org>
上级 2269f5a8
...@@ -1944,12 +1944,6 @@ static int stm32_spi_probe(struct platform_device *pdev) ...@@ -1944,12 +1944,6 @@ static int stm32_spi_probe(struct platform_device *pdev)
goto err_pm_disable; 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"); dev_info(&pdev->dev, "driver initialized\n");
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册