]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: sta2x11-mfd: Fix return value check in sta2x11_mfd_platform_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 7 Dec 2013 06:03:00 +0000 (14:03 +0800)
committerLee Jones <lee.jones@linaro.org>
Mon, 9 Dec 2013 10:34:16 +0000 (10:34 +0000)
commit1cf1df1659027433040f1bfc94612a73d49feea0
tree37a31247cf66ac3fb1bb38a5ec678737bac40655
parenta89edfd4a345c8b3d30b38198f431e1ca786b88b
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>
drivers/mfd/sta2x11-mfd.c