Skip to content

Commit

Permalink
ARM: OMAP: fix error return code in omap1_system_dma_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Tony Lindgren committed May 16, 2013
1 parent 0f49703 commit a8b09c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-omap1/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a8b09c5

Please sign in to comment.