diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-03-04 00:46:58 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-19 09:11:07 -0400 |
commit | 991acaf629cb12774beb4662e6b3045504680779 (patch) | |
tree | c219721c76610c75b7b3b7a18bd3e21c0c3067ec | |
parent | 14256f734ecce8dfb8fdce0e138d18f3fadf882e (diff) |
regulator: s2mps11: 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>
-rw-r--r-- | drivers/regulator/s2mps11.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c index 906d764e98a8..1f6fd4c45006 100644 --- a/drivers/regulator/s2mps11.c +++ b/drivers/regulator/s2mps11.c | |||
@@ -624,6 +624,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev) | |||
624 | } | 624 | } |
625 | 625 | ||
626 | of_regulator_match(&pdev->dev, reg_np, rdata, s2mps11->rdev_num); | 626 | of_regulator_match(&pdev->dev, reg_np, rdata, s2mps11->rdev_num); |
627 | of_node_put(reg_np); | ||
627 | 628 | ||
628 | common_reg: | 629 | common_reg: |
629 | platform_set_drvdata(pdev, s2mps11); | 630 | platform_set_drvdata(pdev, s2mps11); |