From: Stephen Boyd Date: Tue, 17 Jan 2012 03:39:58 +0000 (-0800) Subject: regulator: Add devm_regulator_get() X-Git-Tag: v3.4-rc1~168^2~2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=070b9079226d4f3e3e7c9f4eb81f2e02e7d99572;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed