regulator: Add missing of_node_put()
authorAxel Lin <axel.lin@ingics.com>
Sun, 27 Jan 2013 13:16:56 +0000 (21:16 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 30 Jan 2013 10:50:27 +0000 (18:50 +0800)
commitc92f5dd2c42fa61e0ef810fad4584b184ea2d50e
treec0d7f598b23259342ea4e912607156fb7acef2d2
parent9c9588a7326bdebf49f5d205dd4243c0d1df73d5
regulator: Add missing of_node_put()

of_find_node_by_name() returns a node pointer with refcount incremented, use
of_node_put() on it when done.

of_find_node_by_name() will call of_node_put() against from parameter,
thus we also need to call of_node_get(from) before calling
of_find_node_by_name().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
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/mc13xxx-regulator-core.c
drivers/regulator/palmas-regulator.c
drivers/regulator/tps65910-regulator.c