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");