ARM: OMAP: fix error return code in omap1_system_dma_init()
commita8b09c52a66e801d87704cfebf57958b1991ab86
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 16 May 2013 18:25:07 +0000 (16 11:25 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 16 May 2013 18:25:07 +0000 (16 11:25 -0700)
treec61fe921b9f864f79d99bcdba70d86ec673149e7
parent0f497039276fa2ca2ca324236848bb15c8c775dc
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>
arch/arm/mach-omap1/dma.c