i2c: imx: call ioremap only after request_mem_region
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 8 Jan 2010 16:23:17 +0000 (17:23 +0100)
committerBen Dooks <ben-linux@fluff.org>
Sun, 24 Jan 2010 15:25:57 +0000 (15:25 +0000)
commit4927fbf11dc1057cd9c94dd40358e5f98c999311
treeef929d0d38cc58424865b5a1fe177922ca523397
parenta1ee06b72968d80ab9362ec61143c4f090cc2d1b
i2c: imx: call ioremap only after request_mem_region

accordingly adapt order of release_mem_region and release_mem_region on
remove.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Cc: Richard Zhao <linuxzsc@gmail.com>
Cc: Darius Augulis <augulis.darius@gmail.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: linux-i2c@vger.kernel.org
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-imx.c