regulator: da9063: Add missing of_node_put
Add of_node_put to decrement the ref count. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
25cc275a8b
commit
2da8215ce2
@ -672,6 +672,7 @@ static struct da9063_regulators_pdata *da9063_parse_regulators_dt(
|
||||
|
||||
num = of_regulator_match(&pdev->dev, node, da9063_matches,
|
||||
ARRAY_SIZE(da9063_matches));
|
||||
of_node_put(node);
|
||||
if (num < 0) {
|
||||
dev_err(&pdev->dev, "Failed to match regulators\n");
|
||||
return ERR_PTR(-EINVAL);
|
||||
|
Loading…
Reference in New Issue
Block a user