ARM: OMAP1: DMA: fix error handling in omap1_system_dma_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 8 May 2013 23:48:02 +0000 (16:48 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 8 May 2013 23:48:02 +0000 (16:48 -0700)
commit348c34225d4395b769ec6d283b0c7ace0b430a38
treed540863cbc177ccef26875666ffea16ab85949b0
parente7e17c538604928b98107a08c2c5dc54745d85fe
ARM: OMAP1: DMA: fix error handling in omap1_system_dma_init()

Add the missing iounmap() before return from omap1_system_dma_init()
in the error handling case.
Also removed platform_device_del() on add resources error case which
cause dup device delete.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/dma.c