arm: plat-omap: iommu: fix request_mem_region() error path
authorAaro Koskinen <Aaro.Koskinen@nokia.com>
Mon, 14 Mar 2011 12:28:32 +0000 (12:28 +0000)
committerTony Lindgren <tony@atomide.com>
Mon, 14 Mar 2011 18:14:34 +0000 (11:14 -0700)
commitda4a0f764a6017659bf32505bbd773f561eaf605
treeeaa500c6cb4f137d0144ba036d213fb6a06a3fff
parentb235e007831dbf57710e59cd4a120e2f374eecb9
arm: plat-omap: iommu: fix request_mem_region() error path

request_mem_region() error exit will leak ioremapped memory. Fix this
by moving the ioremap() after request_mem_region(), which is the proper
order to do this anyway.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/iommu.c