diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2012-01-16 22:39:58 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-20 07:02:55 -0500 |
commit | 070b9079226d4f3e3e7c9f4eb81f2e02e7d99572 (patch) | |
tree | 312b92136c28a321624bb811b43e8b03a03660ec /Documentation/driver-model | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) |
regulator: Add devm_regulator_get()
Add a resource managed regulator_get() to simplify regulator
usage in drivers. This allows driver authors to "get and forget"
about their regulators by automatically calling regulator_put()
when the driver is detached.
[Fixed up a couple of coding style issues -- broonie]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'Documentation/driver-model')
-rw-r--r-- | Documentation/driver-model/devres.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt index 10c64c8a13d4..016fd2b06a57 100644 --- a/Documentation/driver-model/devres.txt +++ b/Documentation/driver-model/devres.txt | |||
@@ -267,3 +267,6 @@ IOMAP | |||
267 | pcim_iounmap() | 267 | pcim_iounmap() |
268 | pcim_iomap_table() : array of mapped addresses indexed by BAR | 268 | pcim_iomap_table() : array of mapped addresses indexed by BAR |
269 | pcim_iomap_regions() : do request_region() and iomap() on multiple BARs | 269 | pcim_iomap_regions() : do request_region() and iomap() on multiple BARs |
270 | |||
271 | REGULATOR | ||
272 | devm_regulator_get() | ||