hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBBN6V CVE: NA
--------------------------------
Because commit a787e5400a1c ("driver core: add device probe log helper") was not merge, msg format is different from stable, which causes compile error. Adapt msg to fix it.
Fixes: 24564bb891ae ("ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe()") Signed-off-by: Qi Xi xiqi2@huawei.com --- drivers/acpi/pmic/tps68470_pmic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/pmic/tps68470_pmic.c b/drivers/acpi/pmic/tps68470_pmic.c index fde8a1271c9b..564215948b59 100644 --- a/drivers/acpi/pmic/tps68470_pmic.c +++ b/drivers/acpi/pmic/tps68470_pmic.c @@ -376,8 +376,10 @@ static int tps68470_pmic_opregion_probe(struct platform_device *pdev) struct tps68470_pmic_opregion *opregion; acpi_status status;
- if (!tps68470_regmap) - return dev_err_probe(dev, -EINVAL, "regmap is missing\n"); + if (!tps68470_regmap) { + dev_warn(dev, "dev or regmap is NULL\n"); + return -EINVAL; + }
if (!handle) { dev_warn(dev, "acpi handle is NULL\n");
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/14290 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/E...
FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/14290 Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/E...