mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 08:43:31 +00:00
regulator: tps6507x: 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
e3d4edfd98
commit
aaacb0e9e6
1 changed files with 1 additions and 0 deletions
|
@ -395,6 +395,7 @@ static struct tps6507x_board *tps6507x_parse_dt_reg_data(
|
|||
matches = tps6507x_matches;
|
||||
|
||||
ret = of_regulator_match(&pdev->dev, regulators, matches, count);
|
||||
of_node_put(regulators);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "Error parsing regulator init data: %d\n",
|
||||
ret);
|
||||
|
|
Loading…
Add table
Reference in a new issue