spi/rockchip: fix error return code in rockchip_spi_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 20 Jul 2014 14:02:04 +0000 (22:02 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 25 Jul 2014 17:25:59 +0000 (18:25 +0100)
commitdb7e8d90cae5d0840ad1444b693ec43dbfab339f
tree103b54653162f5b0d8157606aa26240ab1721f95
parent4e6fafee0289222105c40ddd7293da19b043122c
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>
drivers/spi/spi-rockchip.c