mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 15:18:15 +00:00
spi/rockchip: fix error return code in rockchip_spi_probe()
Fix to return -EINVAL from the error handling case instead of 0 when failed to get fifo length. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
4e6fafee02
commit
db7e8d90ca
1 changed files with 1 additions and 0 deletions
|
@ -640,6 +640,7 @@ static int rockchip_spi_probe(struct platform_device *pdev)
|
|||
rs->fifo_len = get_fifo_len(rs);
|
||||
if (!rs->fifo_len) {
|
||||
dev_err(&pdev->dev, "Failed to get fifo length\n");
|
||||
ret = -EINVAL;
|
||||
goto err_get_fifo_len;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue