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

Commit 86396beb authored by Patrick Daly's avatar Patrick Daly
Browse files

iommu: arm-smmu: Allow parsing multiple regulators from devicetree



Fix a loop increment error which prevented parsing more than one
regulator from devicetree.

Change-Id: Idcc5ecdae93ce47eb875dc2bac9e1c712e9e0f7f
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 13ce0881
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3341,7 +3341,7 @@ static int arm_smmu_init_regulators(struct arm_smmu_power_resources *pwr)
	i = 0;
	of_property_for_each_string(dev->of_node, "qcom,regulator-names",
				prop, cname)
		pwr->gdscs[i].supply = cname;
		pwr->gdscs[i++].supply = cname;

	ret = devm_regulator_bulk_get(dev, pwr->num_gdscs, pwr->gdscs);
	return ret;