regulator: Add devm_regulator_get()
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 17 Jan 2012 03:39:58 +0000 (19:39 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 12:02:55 +0000 (12:02 +0000)
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>

No differences found