regulator: core: Use devres for releasing of_regulator_match of_nodes
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 15 Apr 2014 12:34:36 +0000 (13:34 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 18 Apr 2014 17:12:09 +0000 (18:12 +0100)
commit13b3fde808ed287ad23c4549733fb3e3be785114
treefce1d427a3085afb892258205a3df83a5dfef70a
parent5efe144681c183e1ca7b0053ad1113667aa7fde2
regulator: core: Use devres for releasing of_regulator_match of_nodes

Rather than requiring individual drivers to put the of_nodes returned
from of_regulator_match use devres to put them. This also has the
benefit it makes the life-time of the of_nodes match the lifetime of
the init data also contained in the of_regulator_match structure, which
seems more consistent.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/of_regulator.c
include/linux/regulator/of_regulator.h