diff options
Diffstat (limited to 'drivers/regulator/twl-regulator.c')
-rw-r--r-- | drivers/regulator/twl-regulator.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index 43d7494fbd8e..aadf4cfe354e 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c | |||
@@ -533,6 +533,19 @@ static int twlreg_probe(struct platform_device *pdev) | |||
533 | c->valid_ops_mask &= REGULATOR_CHANGE_VOLTAGE | 533 | c->valid_ops_mask &= REGULATOR_CHANGE_VOLTAGE |
534 | | REGULATOR_CHANGE_MODE | 534 | | REGULATOR_CHANGE_MODE |
535 | | REGULATOR_CHANGE_STATUS; | 535 | | REGULATOR_CHANGE_STATUS; |
536 | switch (pdev->id) { | ||
537 | case TWL4030_REG_VIO: | ||
538 | case TWL4030_REG_VDD1: | ||
539 | case TWL4030_REG_VDD2: | ||
540 | case TWL4030_REG_VPLL1: | ||
541 | case TWL4030_REG_VINTANA1: | ||
542 | case TWL4030_REG_VINTANA2: | ||
543 | case TWL4030_REG_VINTDIG: | ||
544 | c->always_on = true; | ||
545 | break; | ||
546 | default: | ||
547 | break; | ||
548 | } | ||
536 | 549 | ||
537 | rdev = regulator_register(&info->desc, &pdev->dev, initdata, info); | 550 | rdev = regulator_register(&info->desc, &pdev->dev, initdata, info); |
538 | if (IS_ERR(rdev)) { | 551 | if (IS_ERR(rdev)) { |