]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: OMAP: fix error return code in omap1_system_dma_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 16 May 2013 18:25:07 +0000 (11:25 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 16 May 2013 18:25:07 +0000 (11:25 -0700)
Fix to return -ENOMEM in the d->chan alloc 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>
arch/arm/mach-omap1/dma.c

index 68ab858e27b754bea93264889ab9b020cf67d698..a94b3a718d1a771dda53f5e06542fb6a6989cee8 100644 (file)
@@ -345,6 +345,7 @@ static int __init omap1_system_dma_init(void)
                dev_err(&pdev->dev,
                        "%s: Memory allocation failed for d->chan!\n",
                        __func__);
+               ret = -ENOMEM;
                goto exit_release_d;
        }