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

Commit 667a6b7a authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown
Browse files

regulator: max14577: Add missing of_node_put



Decrease the reference count for 'regulators' device_node, obtained by
of_get_child_by_name().

Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -168,10 +168,11 @@ static int max14577_regulator_dt_parse_pdata(struct platform_device *pdev)
			MAX14577_REG_MAX);
	if (ret < 0) {
		dev_err(&pdev->dev, "Error parsing regulator init data: %d\n", ret);
		return ret;
	}

	return 0;
	of_node_put(np);

	return ret;
}

static inline struct regulator_init_data *match_init_data(int index)