Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9682fa1e authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Revert "regulator: Enable supply regulator if child rail is enabled.""

parents 06e4f418 7a88f5ef
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -1650,16 +1650,6 @@ static int regulator_resolve_supply(struct regulator_dev *rdev)
		return ret;
	}

	/* Cascade always-on state to supply */
	if (_regulator_is_enabled(rdev)) {
		ret = regulator_enable(rdev->supply);
		if (ret < 0) {
			_regulator_put(rdev->supply);
			rdev->supply = NULL;
			return ret;
		}
	}

	return 0;
}