Commit db7e8d90 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 4e6fafee
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment