diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-20 15:09:18 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-22 11:15:38 -0500 |
commit | d5ad34f7cb8b23ab165cabef69577a2a20d53195 (patch) | |
tree | e0eae78454ba62185c8732e256469bc186ae6438 /include/linux/regulator | |
parent | 070b9079226d4f3e3e7c9f4eb81f2e02e7d99572 (diff) |
regulator: Implement devm_regulator_free()
Allow consumers to free regulators allocated using devm_regulator_get()
if they need to. This will not normally be required.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/consumer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index bcfe10658763..60c2f996d895 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h | |||
@@ -137,6 +137,7 @@ struct regulator *__must_check devm_regulator_get(struct device *dev, | |||
137 | struct regulator *__must_check regulator_get_exclusive(struct device *dev, | 137 | struct regulator *__must_check regulator_get_exclusive(struct device *dev, |
138 | const char *id); | 138 | const char *id); |
139 | void regulator_put(struct regulator *regulator); | 139 | void regulator_put(struct regulator *regulator); |
140 | void devm_regulator_free(struct regulator *regulator); | ||
140 | 141 | ||
141 | /* regulator output control and status */ | 142 | /* regulator output control and status */ |
142 | int regulator_enable(struct regulator *regulator); | 143 | int regulator_enable(struct regulator *regulator); |