]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63637cebec00093604fbbff83093f0fd2264ec4b
treed07083fe04c11c2d32a4405b8245523ca09fe60f
parentcec3ab8d456d1d2dab9b60fb279125e4f7315d31
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