ASoC: imx-sgtl5000: fix error return code in imx_sgtl5000_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 16 Jul 2013 12:05:07 +0000 (20:05 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 16 Jul 2013 13:29:28 +0000 (14:29 +0100)
commitf1269ae41f2e2846031cb361b59ebc36d5f9528a
treeb9e186c564611058998fa2eef482c389b8b7ced4
parenta1df5c2b310ff88cad66de6d55c06d4ad3b9684b
ASoC: imx-sgtl5000: fix error return code in imx_sgtl5000_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>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/imx-sgtl5000.c