From: Mark Brown Date: Mon, 25 Jul 2011 21:20:30 +0000 (+0100) Subject: regulator: Fix WM831x DCDC DVS VSEL bootstrapping X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a1b81dd3ff2c622d0f4e3954bf9b5dd47a0f13a0;p=linux-beck.git regulator: Fix WM831x DCDC DVS VSEL bootstrapping Read our initial VSEL from the correct register. Signed-off-by: Mark Brown Signed-off-by: Liam Girdwood --- 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;