diff options
| author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2014-04-15 16:34:36 +0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-04-18 21:12:09 +0400 |
| commit | 13b3fde808ed287ad23c4549733fb3e3be785114 (patch) | |
| tree | fce1d427a3085afb892258205a3df83a5dfef70a /include/linux | |
| parent | 5efe144681c183e1ca7b0053ad1113667aa7fde2 (diff) | |
| download | linux-13b3fde808ed287ad23c4549733fb3e3be785114.tar.xz | |
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/regulator/of_regulator.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/regulator/of_regulator.h b/include/linux/regulator/of_regulator.h index a5abd8334003..f9217965aaa3 100644 --- a/include/linux/regulator/of_regulator.h +++ b/include/linux/regulator/of_regulator.h @@ -20,8 +20,6 @@ extern struct regulator_init_data extern int of_regulator_match(struct device *dev, struct device_node *node, struct of_regulator_match *matches, unsigned int num_matches); -extern int of_regulator_put_match(struct of_regulator_match *matches, - unsigned int num_matches); #else static inline struct regulator_init_data *of_get_regulator_init_data(struct device *dev, @@ -37,11 +35,6 @@ static inline int of_regulator_match(struct device *dev, { return 0; } -static inline int of_regulator_put_match(struct of_regulator_match *matches, - unsigned int num_matches) -{ - return 0; -} #endif /* CONFIG_OF */ #endif /* __LINUX_OF_REG_H */ |
