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>
This commit is contained in:
parent
826adb4900
commit
cde248f92f
|
@ -340,6 +340,7 @@ static int max8660_pdata_from_dt(struct device *dev,
|
|||
rmatch[i].name = max8660_reg[i].name;
|
||||
|
||||
matched = of_regulator_match(dev, np, rmatch, ARRAY_SIZE(rmatch));
|
||||
of_node_put(np);
|
||||
if (matched <= 0)
|
||||
return matched;
|
||||
|
||||
|
|
Loading…
Reference in New Issue