diff options
author | Wei Yongjun | 2013-07-16 14:10:46 +0200 |
---|---|---|
committer | Tony Lindgren | 2013-08-21 10:07:16 +0200 |
commit | 94b1d617e3ba4e682b8c94b86b65049ed5c810d6 (patch) | |
tree | bfdae95d9df81701ae07c7327d6c96814c91572c /arch/arm/plat-omap | |
parent | ARM: OMAP2+: fix wrong address when loading PRM_FRAC_INCREMENTOR_DENUMERATOR_... (diff) | |
download | kernel-qcow2-linux-94b1d617e3ba4e682b8c94b86b65049ed5c810d6.tar.gz kernel-qcow2-linux-94b1d617e3ba4e682b8c94b86b65049ed5c810d6.tar.xz kernel-qcow2-linux-94b1d617e3ba4e682b8c94b86b65049ed5c810d6.zip |
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 4d463ca6821f..037660633fa4 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c @@ -2083,6 +2083,7 @@ static int omap_system_dma_probe(struct platform_device *pdev) dma_irq = platform_get_irq_byname(pdev, irq_name); if (dma_irq < 0) { dev_err(&pdev->dev, "failed: request IRQ %d", dma_irq); + ret = dma_irq; goto exit_dma_lch_fail; } ret = setup_irq(dma_irq, &omap24xx_dma_irq); |