diff options
author | Juha Keski-Saari <ext-juha.1.keski-saari@nokia.com> | 2009-12-16 08:27:58 -0500 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2009-12-17 05:27:29 -0500 |
commit | 30010fa52c7bd466b441e3f9020ba4cf6154fa41 (patch) | |
tree | 738a20df306ca1db1ac602d1b1c405fc819efd09 /drivers/regulator | |
parent | 045f972f2c254070652a59958591cac650e8684e (diff) |
twl-regulator: Restore REMAP configuration in regulator probe
This change ensures the regulator REMAP register configuration is in a known
state so state transitions will function as intended regardless of
possible bootloader effects on it
Signed-off-by: Juha Keski-Saari <ext-juha.1.keski-saari@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/twl-regulator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index 3df02267e1e7..6c464b86b29c 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c | |||
@@ -576,6 +576,9 @@ static int twlreg_probe(struct platform_device *pdev) | |||
576 | } | 576 | } |
577 | platform_set_drvdata(pdev, rdev); | 577 | platform_set_drvdata(pdev, rdev); |
578 | 578 | ||
579 | twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_REMAP, | ||
580 | info->remap); | ||
581 | |||
579 | /* NOTE: many regulators support short-circuit IRQs (presentable | 582 | /* NOTE: many regulators support short-circuit IRQs (presentable |
580 | * as REGULATOR_OVER_CURRENT notifications?) configured via: | 583 | * as REGULATOR_OVER_CURRENT notifications?) configured via: |
581 | * - SC_CONFIG | 584 | * - SC_CONFIG |