commit | 64de3a00a16bcdf940cbebb1b2dc05d7cc13fef5 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Fri Sep 21 14:30:50 2012 +0800 |
committer | Tony Lindgren <tony@atomide.com> | Mon Oct 08 15:43:57 2012 -0700 |
tree | 5d90dbfc3b0b45dcd2db39066b1c63d55f71128b | |
parent | 9ee677231bbc6a9e6ec9057d33d81eb248742b0a [diff] |
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>