Skip to content
Commit 14f8c55d authored by Yang Yingliang's avatar Yang Yingliang Committed by Lee Jones
Browse files

mfd: pm8008: Fix return value check in pm8008_probe()



In case of error, the function devm_regmap_init_i2c() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().

Fixes: 6b149f33 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221125073626.1868229-1-yangyingliang@huawei.com
parent cb83cb0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment