diff mbox

[1/2] regulator: dummy: Should be always-on

Message ID 1393322627-26543-2-git-send-email-mpa@pengutronix.de (mailing list archive)
State New, archived
Headers show

Commit Message

Markus Pargmann Feb. 25, 2014, 10:03 a.m. UTC
Regulator dummy does not have any enable operations. So it is always_on.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
 drivers/regulator/dummy.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Mark Brown Feb. 25, 2014, 11:50 p.m. UTC | #1
On Tue, Feb 25, 2014 at 11:03:46AM +0100, Markus Pargmann wrote:

> Regulator dummy does not have any enable operations. So it is always_on.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c
index df9f425..2436db9 100644
--- a/drivers/regulator/dummy.c
+++ b/drivers/regulator/dummy.c
@@ -25,7 +25,11 @@ 
 
 struct regulator_dev *dummy_regulator_rdev;
 
-static struct regulator_init_data dummy_initdata;
+static struct regulator_init_data dummy_initdata = {
+	.constraints = {
+		.always_on = 1,
+	},
+};
 
 static struct regulator_ops dummy_ops;