From: Shawn Guo Date: Wed, 19 Jan 2011 11:13:06 +0000 (+0800) Subject: dmaengine: imx-sdma: propagate error in sdma_probe() instead of returning 0 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=939fd4f077269dd863cd630a3b3195a20acf7d02;p=linux-beck.git dmaengine: imx-sdma: propagate error in sdma_probe() instead of returning 0 Signed-off-by: Shawn Guo Acked-by: Uwe Kleine-König Signed-off-by: Dan Williams --- diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 75df8b937413..1dbaf61eea2d 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1348,7 +1348,7 @@ err_clk: err_request_region: err_irq: kfree(sdma); - return 0; + return ret; } static int __exit sdma_remove(struct platform_device *pdev)