commit | ec9e4ba67e3782d5a9ec12754223a3f611810a93 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Sat Dec 07 14:03:00 2013 +0800 |
committer | Lee Jones <lee.jones@linaro.org> | Tue Jan 21 08:28:03 2014 +0000 |
tree | 160e7a2be128bf844878a1ebc12a9ae87886de8e | |
parent | 328fe79cac65331cbf22c8eefcb2a1f9164974ac [diff] |
mfd: sta2x11-mfd: Fix return value check in sta2x11_mfd_platform_probe() In case of error, the function devm_regmap_init_mmio() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Lee Jones <lee.jones@linaro.org>