ARM: OMAP: hsmmc: fix return value check in omap_hsmmc_init_one()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 21 Sep 2012 06:30:50 +0000 (14:30 +0800)
committerTony Lindgren <tony@atomide.com>
Mon, 8 Oct 2012 22:43:57 +0000 (15:43 -0700)
commit64de3a00a16bcdf940cbebb1b2dc05d7cc13fef5
tree5d90dbfc3b0b45dcd2db39066b1c63d55f71128b
parent9ee677231bbc6a9e6ec9057d33d81eb248742b0a
ARM: OMAP: hsmmc: fix return value check in omap_hsmmc_init_one()

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

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

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