Skip to content

Commit

Permalink
dmaengine: imx-sdma: propagate error in sdma_probe() instead of retur…
Browse files Browse the repository at this point in the history
…ning 0

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>
  • Loading branch information
Shawn Guo authored and Dan Williams committed Jan 30, 2011
1 parent 6866fd3 commit 939fd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ static int __init sdma_probe(struct platform_device *pdev)
err_request_region:
err_irq:
kfree(sdma);
return 0;
return ret;
}

static int __exit sdma_remove(struct platform_device *pdev)
Expand Down

0 comments on commit 939fd4f

Please sign in to comment.