Skip to content

Commit cde248f

Browse files
Sachin Kamatbroonie
authored andcommitted
regulator: max8660: 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>
1 parent 826adb4 commit cde248f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/regulator/max8660.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ static int max8660_pdata_from_dt(struct device *dev,
340340
rmatch[i].name = max8660_reg[i].name;
341341

342342
matched = of_regulator_match(dev, np, rmatch, ARRAY_SIZE(rmatch));
343+
of_node_put(np);
343344
if (matched <= 0)
344345
return matched;
345346

0 commit comments

Comments
 (0)