Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
Mark Brown
db7e8d90 4e6fafee

+1
+1
drivers/spi/spi-rockchip.c
··· 640 640 rs->fifo_len = get_fifo_len(rs); 641 641 if (!rs->fifo_len) { 642 642 dev_err(&pdev->dev, "Failed to get fifo length\n"); 643 + ret = -EINVAL; 643 644 goto err_get_fifo_len; 644 645 } 645 646