spi: imx: fix error return code in spi_imx_probe()
Fix to return error code -EINVAL if no CS GPIOs available instead of 0, as done elsewhere in this function. Fixes: f13d4e18 ("spi: imx: Gracefully handle NULL master->cs_gpios") Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com> Acked-by: NMarek Vasut <marex@denx.de> Signed-off-by: NMark Brown <broonie@kernel.org>
Showing
想要评论请 注册 或 登录