diff mbox

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

Message ID 1394445461-17532-2-git-send-email-sachin.kamat@linaro.org
State Accepted
Commit 991acaf629cb12774beb4662e6b3045504680779
Headers show

Commit Message

Sachin Kamat March 10, 2014, 9:57 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(+)
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);