commit | acf149d4a0ca82feb78d5efe75bcb2bfd4d67939 | [log] [tgz] |
---|---|---|
author | Stephen Boyd <sboyd@codeaurora.org> | Mon Jan 16 19:39:58 2012 -0800 |
committer | Stephen Boyd <sboyd@codeaurora.org> | Tue Jan 17 17:42:35 2012 -0800 |
tree | 70c2f9331797c25434d9eea0982dfa384489320e | |
parent | cbb79ea8a18fb70d7330aab63c649bc54a4b1c59 [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] Change-Id: Ie32415c3a9f2c4aa99a98b6cb92a784e23d874ea Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>