aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm831x-dcdc.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-25 17:20:30 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-07-28 05:20:49 -0400
commita1b81dd3ff2c622d0f4e3954bf9b5dd47a0f13a0 (patch)
tree0feeb4a5f5b608aee9c5962ba08f16b8a6bfd104 /drivers/regulator/wm831x-dcdc.c
parent137a6354305455d585fe99fe5e9949acd895b045 (diff)
regulator: Fix WM831x DCDC DVS VSEL bootstrapping
Read our initial VSEL from the correct register. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/wm831x-dcdc.c')
-rw-r--r--drivers/regulator/wm831x-dcdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c
index 0c7a9d5047f4..8a4fdc3a45d9 100644
--- a/drivers/regulator/wm831x-dcdc.c
+++ b/drivers/regulator/wm831x-dcdc.c
@@ -551,7 +551,7 @@ static __devinit int wm831x_buckv_probe(struct platform_device *pdev)
551 } 551 }
552 dcdc->on_vsel = ret & WM831X_DC1_ON_VSEL_MASK; 552 dcdc->on_vsel = ret & WM831X_DC1_ON_VSEL_MASK;
553 553
554 ret = wm831x_reg_read(wm831x, dcdc->base + WM831X_DCDC_ON_CONFIG); 554 ret = wm831x_reg_read(wm831x, dcdc->base + WM831X_DCDC_DVS_CONTROL);
555 if (ret < 0) { 555 if (ret < 0) {
556 dev_err(wm831x->dev, "Failed to read DVS VSEL: %d\n", ret); 556 dev_err(wm831x->dev, "Failed to read DVS VSEL: %d\n", ret);
557 goto err; 557 goto err;