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

Commit 2da8215c authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown
Browse files

regulator: da9063: Add missing of_node_put



Add of_node_put to decrement the ref count.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 25cc275a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -672,6 +672,7 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt(


	num = of_regulator_match(&pdev->dev, node, da9063_matches,
	num = of_regulator_match(&pdev->dev, node, da9063_matches,
				 ARRAY_SIZE(da9063_matches));
				 ARRAY_SIZE(da9063_matches));
	of_node_put(node);
	if (num < 0) {
	if (num < 0) {
		dev_err(&pdev->dev, "Failed to match regulators\n");
		dev_err(&pdev->dev, "Failed to match regulators\n");
		return ERR_PTR(-EINVAL);
		return ERR_PTR(-EINVAL);