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

Commit 44784cb3 authored by Mark Brown's avatar Mark Brown
Browse files

Merge remote-tracking branch 'regulator/fix/of' into tmp

parents 98380536 a2f95c36
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -120,6 +120,12 @@ int of_regulator_match(struct device *dev, struct device_node *node,
	if (!dev || !node)
	if (!dev || !node)
		return -EINVAL;
		return -EINVAL;


	for (i = 0; i < num_matches; i++) {
		struct of_regulator_match *match = &matches[i];
		match->init_data = NULL;
		match->of_node = NULL;
	}

	for_each_child_of_node(node, child) {
	for_each_child_of_node(node, child) {
		name = of_get_property(child,
		name = of_get_property(child,
					"regulator-compatible", NULL);
					"regulator-compatible", NULL);