提交 94b1d617 编写于 作者: W Wei Yongjun 提交者: Tony Lindgren

ARM: OMAP: dma: fix error return code in omap_system_dma_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 42c604ba
...@@ -2083,6 +2083,7 @@ static int omap_system_dma_probe(struct platform_device *pdev) ...@@ -2083,6 +2083,7 @@ static int omap_system_dma_probe(struct platform_device *pdev)
dma_irq = platform_get_irq_byname(pdev, irq_name); dma_irq = platform_get_irq_byname(pdev, irq_name);
if (dma_irq < 0) { if (dma_irq < 0) {
dev_err(&pdev->dev, "failed: request IRQ %d", dma_irq); dev_err(&pdev->dev, "failed: request IRQ %d", dma_irq);
ret = dma_irq;
goto exit_dma_lch_fail; goto exit_dma_lch_fail;
} }
ret = setup_irq(dma_irq, &omap24xx_dma_irq); ret = setup_irq(dma_irq, &omap24xx_dma_irq);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册