]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf4dbbed629cfc25cecc8f9fff3d5d90568ad5f2
tree5d90dbfc3b0b45dcd2db39066b1c63d55f71128b
parent5c1d727d9c84096163f4ec6c4a110dc3e5e46f50
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