Unverified Commit ad6bb783 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 5a0dccc9 c79788d9
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");