From: Sachin Kamat Date: Mon, 17 Feb 2014 09:03:36 +0000 (+0530) Subject: regulator: tps6507x: Add missing of_node_put X-Git-Tag: firefly_0821_release~176^2~4202^2~1^7~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aaacb0e9e66f644a0291082263455c6aafab0e9d;p=firefly-linux-kernel-4.4.55.git regulator: tps6507x: Add missing of_node_put Add of_node_put to decrement the ref count. Signed-off-by: Sachin Kamat Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c index 5a558dad27e3..e506e7f54253 100644 --- a/drivers/regulator/tps6507x-regulator.c +++ b/drivers/regulator/tps6507x-regulator.c @@ -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);