From 8669544a788a2d9de14cdbb3069b71ddc326e66f Mon Sep 17 00:00:00 2001 From: Markus Pargmann Date: Tue, 25 Feb 2014 11:03:46 +0100 Subject: [PATCH] regulator: dummy: Should be always-on Regulator dummy does not have any enable operations. So it is always_on. Signed-off-by: Markus Pargmann Signed-off-by: Mark Brown --- drivers/regulator/dummy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c index df9f42524abb..2436db9e2ca3 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;