regulator: dummy: Should be always-on
authorMarkus Pargmann <mpa@pengutronix.de>
Tue, 25 Feb 2014 10:03:46 +0000 (11:03 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 25 Feb 2014 23:49:52 +0000 (08:49 +0900)
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>
drivers/regulator/dummy.c

index df9f42524abb3fd1164f61e7bee4065985d59d24..2436db9e2ca35f60875ab56cc825050c0d6a3ff2 100644 (file)
 
 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;