dmaengine: ste_dma40: fix error return code in d40_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 31 May 2013 01:50:07 +0000 (09:50 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Jun 2013 09:12:46 +0000 (11:12 +0200)
commit8581bbcd30afa9d2fa12ad1605c809b7ada495ea
tree38a36942784089ac28909eba0a4e03048545565a
parent499c2bc3cc89dcbbf08aa526cd4a984b92a4d2a8
dmaengine: ste_dma40: fix error return code in d40_probe()

In many of the error handling case, the return value 'ret' not set
and 0 will be return from d40_probe() even if error, but we should
return a negative error code instead in those error handling case.
This patch fixed them, and also removed useless variable 'err'.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/dma/ste_dma40.c