diff options
author | Jonghwan Choi <[email protected]> | 2011-06-15 17:54:12 +0900 |
---|---|---|
committer | Liam Girdwood <[email protected]> | 2011-07-08 19:14:57 +0100 |
commit | e2cf3137aaa23faf2b8c1335671f1a0a0d90aab5 (patch) | |
tree | 9d0e14dbe35a2de5f941ada196eb97cce18e2f60 | |
parent | 902daf6580cffe04721250fb71b5527a98718b11 (diff) |
regulator: max8952 - fix wrong gpio valid check
Signed-off-by: Jonghwan Choi <[email protected]>
Acked-by: MyungJoo Ham <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
-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; } |