diff options
author | Jonghwan Choi <jhbird.choi@samsung.com> | 2011-06-15 17:54:12 +0900 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-07-08 19:14:57 +0100 |
commit | e2cf3137aaa23faf2b8c1335671f1a0a0d90aab5 (patch) | |
tree | 9d0e14dbe35a2de5f941ada196eb97cce18e2f60 /drivers/regulator/max8952.c | |
parent | 902daf6580cffe04721250fb71b5527a98718b11 (diff) | |
download | blackbird-op-linux-e2cf3137aaa23faf2b8c1335671f1a0a0d90aab5.tar.gz blackbird-op-linux-e2cf3137aaa23faf2b8c1335671f1a0a0d90aab5.zip |
regulator: max8952 - fix wrong gpio valid check
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/max8952.c')
-rw-r--r-- | drivers/regulator/max8952.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c index daff7fd0e95c..486ed8141fcd 100644 --- a/drivers/regulator/max8952.c +++ b/drivers/regulator/max8952.c @@ -139,7 +139,7 @@ static int max8952_set_voltage(struct regulator_dev *rdev, s8 vid = -1, i; if (!gpio_is_valid(max8952->pdata->gpio_vid0) || - !gpio_is_valid(max8952->pdata->gpio_vid0)) { + !gpio_is_valid(max8952->pdata->gpio_vid1)) { /* DVS not supported */ return -EPERM; } |