summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-25 22:20:30 +0100
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-07-28 10:20:49 +0100
commita1b81dd3ff2c622d0f4e3954bf9b5dd47a0f13a0 (patch)
tree0feeb4a5f5b608aee9c5962ba08f16b8a6bfd104
parent137a6354305455d585fe99fe5e9949acd895b045 (diff)
downloadblackbird-op-linux-a1b81dd3ff2c622d0f4e3954bf9b5dd47a0f13a0.tar.gz
blackbird-op-linux-a1b81dd3ff2c622d0f4e3954bf9b5dd47a0f13a0.zip
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>
-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)
}
dcdc->on_vsel = ret & WM831X_DC1_ON_VSEL_MASK;
- ret = wm831x_reg_read(wm831x, dcdc->base + WM831X_DCDC_ON_CONFIG);
+ ret = wm831x_reg_read(wm831x, dcdc->base + WM831X_DCDC_DVS_CONTROL);
if (ret < 0) {
dev_err(wm831x->dev, "Failed to read DVS VSEL: %d\n", ret);
goto err;
OpenPOWER on IntegriCloud