ARM: imx: fix return value check in imx3_init_l2x0()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 27 Sep 2012 05:54:01 +0000 (13:54 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 8 Oct 2012 09:25:27 +0000 (11:25 +0200)
commit1d10ecf8371be22c68b2e52e7376c7075c97f656
treed07083fe04c11c2d32a4405b8245523ca09fe60f
parenta0d271cbfed1dd50278c6b06bead3d00ba0a88f9
ARM: imx: fix return value check in imx3_init_l2x0()

In case of error, the function ioremap() returns NULL
not ERR_PTR(). The IS_ERR() test in the return value
check should be replaced with NULL test.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/mm-imx3.c