diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-02-05 11:56:27 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-05 12:06:13 -0500 |
commit | 667a6b7a620ec6e0c1e6689b8c6531c51ce6cdfa (patch) | |
tree | 8d002b05bcb9559baca0f721913825facae18e72 /drivers/regulator/max14577.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
regulator: max14577: Add missing of_node_put
Decrease the reference count for 'regulators' device_node, obtained by
of_get_child_by_name().
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/max14577.c')
-rw-r--r-- | drivers/regulator/max14577.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/regulator/max14577.c b/drivers/regulator/max14577.c index b1078ba3f393..186df8785a91 100644 --- a/drivers/regulator/max14577.c +++ b/drivers/regulator/max14577.c | |||
@@ -168,10 +168,11 @@ static int max14577_regulator_dt_parse_pdata(struct platform_device *pdev) | |||
168 | MAX14577_REG_MAX); | 168 | MAX14577_REG_MAX); |
169 | if (ret < 0) { | 169 | if (ret < 0) { |
170 | dev_err(&pdev->dev, "Error parsing regulator init data: %d\n", ret); | 170 | dev_err(&pdev->dev, "Error parsing regulator init data: %d\n", ret); |
171 | return ret; | ||
172 | } | 171 | } |
173 | 172 | ||
174 | return 0; | 173 | of_node_put(np); |
174 | |||
175 | return ret; | ||
175 | } | 176 | } |
176 | 177 | ||
177 | static inline struct regulator_init_data *match_init_data(int index) | 178 | static inline struct regulator_init_data *match_init_data(int index) |