Commit c79788d9 authored by Qi Xi's avatar Qi Xi
Browse files

ACPI: PMIC: fix compile error

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBBN6V


CVE: NA

--------------------------------

Because commit a787e540 ("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: 24564bb8 ("ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe()")
Signed-off-by: default avatarQi Xi <xiqi2@huawei.com>
parent 33267d4a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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");