summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2014-02-25 11:03:46 +0100
committerMark Brown <broonie@linaro.org>2014-02-26 08:49:52 +0900
commit8669544a788a2d9de14cdbb3069b71ddc326e66f (patch)
tree8db7fcc38ba733527f69413c3dfd6238ffad861c /drivers/regulator
parentc00dc359e5e0b10de993651d8e73e60c41bf29cd (diff)
downloadlinux-8669544a788a2d9de14cdbb3069b71ddc326e66f.tar.bz2
regulator: dummy: Should be always-on
Regulator dummy does not have any enable operations. So it is always_on. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/dummy.c6
1 files changed, 5 insertions, 1 deletions
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;