diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-28 14:50:18 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-28 09:50:55 -0700 |
commit | 446576f9ea5308c671eafb1cdc2a977b406c1dc5 (patch) | |
tree | c25e55f951b8a7244884b1c5ddf5086316b7728c /drivers/spi/spi-dw.c | |
parent | f13d4e189d209af0f552e9900acd06ee4a35e601 (diff) | |
download | linux-446576f9ea5308c671eafb1cdc2a977b406c1dc5.tar.bz2 |
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: 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>
Diffstat (limited to 'drivers/spi/spi-dw.c')
0 files changed, 0 insertions, 0 deletions