spi: orion: Fix error return code in orion_spi_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 20 Jul 2014 14:03:14 +0000 (22:03 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 25 Jul 2014 17:28:46 +0000 (18:28 +0100)
commit1403381638e03b361afde8f3e107ecc8e6c8f54f
tree8d096a988b68a81abd4650a903a9369f1e4b3ab5
parent5c6786945b4e0434312572da6cf40f13f1763740
spi: orion: Fix error return code in orion_spi_probe()

Fix to return a negative error code from the error handling case of
orion_spi_reset() instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-orion.c