From: Wei Yongjun Date: Sat, 7 Dec 2013 06:03:00 +0000 (+0800) Subject: mfd: sta2x11-mfd: Fix return value check in sta2x11_mfd_platform_probe() X-Git-Tag: v3.14-rc1~142^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec9e4ba67e3782d5a9ec12754223a3f611810a93;p=pandora-kernel.git 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 Signed-off-by: Lee Jones --- Reading git-diff-tree failed