regulator: remove unnecessary of_node_get() to parent
authorGuodong Xu <guodong.xu@linaro.org>
Wed, 10 Sep 2014 03:50:39 +0000 (11:50 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Sep 2014 10:35:02 +0000 (11:35 +0100)
commitb8b27a44ddf1987e9bae84b99741b0a61192e017
tree8516c54902fe34fc84693686bd90b06413390d8e
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
regulator: remove unnecessary of_node_get() to parent

These of_node_get() were added to balance refcount decrements inside of
of_find_node_by_name().
See: commit c92f5dd2c42f ("regulator: Add missing of_node_put()")

However of_find_node_by_name() was then replaced by of_get_child_by_name(),
which doesn't call of_node_put() against its input parameter.

So, need to remove these unnecessary of_node_get() calls.

Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
Reviewed-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/88pm8607.c
drivers/regulator/da9052-regulator.c
drivers/regulator/max8907-regulator.c
drivers/regulator/max8925-regulator.c
drivers/regulator/max8997.c
drivers/regulator/palmas-regulator.c
drivers/regulator/tps65910-regulator.c
This page took 0.025879 seconds and 5 git commands to generate.