diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-16 11:25:07 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-05-16 11:25:07 -0700 |
commit | a8b09c52a66e801d87704cfebf57958b1991ab86 (patch) | |
tree | c61fe921b9f864f79d99bcdba70d86ec673149e7 /arch | |
parent | 0f497039276fa2ca2ca324236848bb15c8c775dc (diff) |
ARM: OMAP: fix error return code in omap1_system_dma_init()
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap1/dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/dma.c b/arch/arm/mach-omap1/dma.c index 68ab858e27b..a94b3a718d1 100644 --- a/arch/arm/mach-omap1/dma.c +++ b/arch/arm/mach-omap1/dma.c @@ -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; } |