Message ID | 1393322627-26543-2-git-send-email-mpa@pengutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 --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;
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(-)