diff mbox

[2/2] regulator: s2mps11: Add missing of_node_put

Message ID 1393912018-15780-2-git-send-email-sachin.kamat@linaro.org
State Superseded
Headers show

Commit Message

Sachin Kamat March 4, 2014, 5:46 a.m. UTC
Add of_node_put to decrement the ref count.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/regulator/s2mps11.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Mark Brown March 19, 2014, 1:11 p.m. UTC | #1
On Tue, Mar 04, 2014 at 11:16:58AM +0530, Sachin Kamat wrote:
> Add of_node_put to decrement the ref count.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c
index 0f6177b..6eaf69b 100644
--- a/drivers/regulator/s2mps11.c
+++ b/drivers/regulator/s2mps11.c
@@ -446,6 +446,7 @@  static int s2mps11_pmic_probe(struct platform_device *pdev)
 	}
 
 	of_regulator_match(&pdev->dev, reg_np, rdata, s2mps11->rdev_num);
+	of_node_put(reg_np);
 
 common_reg:
 	platform_set_drvdata(pdev, s2mps11);