diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-10 04:52:59 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-10 04:52:59 -0400 |
commit | b920eb41a8241c54efbbd4f2ed6d074f497b0d9e (patch) | |
tree | 5941091817e932add192f8e58dc88d483322e214 /drivers/regulator/wm831x-ldo.c | |
parent | a9d5801041eecc7baceff49a28e82f91f207a961 (diff) | |
parent | 0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff) |
Merge tag 'v3.4-rc2' into regulator-drivers
Linux 3.4-rc2 contains some fixes that further patches depend upon.
Diffstat (limited to 'drivers/regulator/wm831x-ldo.c')
-rw-r--r-- | drivers/regulator/wm831x-ldo.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/regulator/wm831x-ldo.c b/drivers/regulator/wm831x-ldo.c index eb6a3061884..5f01040e157 100644 --- a/drivers/regulator/wm831x-ldo.c +++ b/drivers/regulator/wm831x-ldo.c | |||
@@ -510,22 +510,19 @@ static int wm831x_aldo_set_mode(struct regulator_dev *rdev, | |||
510 | { | 510 | { |
511 | struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); | 511 | struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); |
512 | struct wm831x *wm831x = ldo->wm831x; | 512 | struct wm831x *wm831x = ldo->wm831x; |
513 | int ctrl_reg = ldo->base + WM831X_LDO_CONTROL; | ||
514 | int on_reg = ldo->base + WM831X_LDO_ON_CONTROL; | 513 | int on_reg = ldo->base + WM831X_LDO_ON_CONTROL; |
515 | int ret; | 514 | int ret; |
516 | 515 | ||
517 | 516 | ||
518 | switch (mode) { | 517 | switch (mode) { |
519 | case REGULATOR_MODE_NORMAL: | 518 | case REGULATOR_MODE_NORMAL: |
520 | ret = wm831x_set_bits(wm831x, on_reg, | 519 | ret = wm831x_set_bits(wm831x, on_reg, WM831X_LDO7_ON_MODE, 0); |
521 | WM831X_LDO7_ON_MODE, 0); | ||
522 | if (ret < 0) | 520 | if (ret < 0) |
523 | return ret; | 521 | return ret; |
524 | break; | 522 | break; |
525 | 523 | ||
526 | case REGULATOR_MODE_IDLE: | 524 | case REGULATOR_MODE_IDLE: |
527 | ret = wm831x_set_bits(wm831x, ctrl_reg, | 525 | ret = wm831x_set_bits(wm831x, on_reg, WM831X_LDO7_ON_MODE, |
528 | WM831X_LDO7_ON_MODE, | ||
529 | WM831X_LDO7_ON_MODE); | 526 | WM831X_LDO7_ON_MODE); |
530 | if (ret < 0) | 527 | if (ret < 0) |
531 | return ret; | 528 | return ret; |