]> git.baikalelectronics.ru Git - kernel.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>
Tue, 21 Jan 2014 08:28:03 +0000 (08:28 +0000)
commit7efc0d3289fdd563ca6c126bdd9a99136acb23ea
tree160e7a2be128bf844878a1ebc12a9ae87886de8e
parentac7ba2d86f8c21c14f5d65fd324b1a5ab162a54f
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