mxs/spi: fix error return code in mxs_spi_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 3 Apr 2013 13:06:40 +0000 (21:06 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Apr 2013 17:37:38 +0000 (18:37 +0100)
commit58ad60bbb2abada33fbeae88943ab038e2fcc0ef
treeb8aca631bb2ffea2e82f43ff171ea0290898310f
parent72919f340245bbc9b81da35844134db2d675912a
mxs/spi: fix error return code in mxs_spi_probe()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-mxs.c