dmaengine: imx-sdma: propagate error in sdma_probe() instead of returning 0
authorShawn Guo <shawn.guo@freescale.com>
Wed, 19 Jan 2011 11:13:06 +0000 (19:13 +0800)
committerDan Williams <dan.j.williams@intel.com>
Sun, 30 Jan 2011 03:34:10 +0000 (19:34 -0800)
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/imx-sdma.c

index 75df8b937413ab12ede51a51d9f0ec3b991316bd..1dbaf61eea2d13f13fa82b08a37dfdb3585e48df 100644 (file)
@@ -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)