spi: mpc512x: fix error return code in mpc512x_psc_spi_do_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 11 Sep 2013 11:15:39 +0000 (19:15 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 12 Sep 2013 09:48:57 +0000 (10:48 +0100)
commiteadf69cf5e1cdd042fb7b7beeffa538a935373cd
tree0272f1a557307a5e0d4124715ff5097a6c1df05a
parent578739259875a93b1869d25cdf4a8bd963b7d0a7
spi: mpc512x: fix error return code in mpc512x_psc_spi_do_probe()

Fix to return a negative error code from the error handling
case 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-mpc512x-psc.c