diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-11-25 08:36:26 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-12-08 15:41:29 +0100 |
commit | 14f8c55d48e02157519fbcb3a5de557abd8a06e2 (patch) | |
tree | a57101b08118f4a071d795186fdaa35270dc71b6 /Documentation | |
parent | mfd: rohm: Use dev_err_probe() (diff) | |
download | linux-14f8c55d48e02157519fbcb3a5de557abd8a06e2.tar.xz linux-14f8c55d48e02157519fbcb3a5de557abd8a06e2.zip |
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: 6b149f3310a4 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Guru Das Srinagesh <gurus@codeaurora.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221125073626.1868229-1-yangyingliang@huawei.com
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions