dmaengine: imx-sdma: propagate error in sdma_probe() instead of returning 0

Signed-off-by: Shawn Guo <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
Shawn Guo 2011-01-19 19:13:06 +08:00 • committed by Dan Williams
commit 939fd4f077

View 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)