aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonghwan Choi <jhbird.choi@samsung.com>2011-06-15 17:54:12 +0900
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-07-08 19:14:57 +0100
commite2cf3137aaa23faf2b8c1335671f1a0a0d90aab5 (patch)
tree9d0e14dbe35a2de5f941ada196eb97cce18e2f60
parent902daf6580cffe04721250fb71b5527a98718b11 (diff)
downloadlinux-linaro-e2cf3137aaa23faf2b8c1335671f1a0a0d90aab5.tar.gz
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>
-rw-r--r--drivers/regulator/max8952.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c
index daff7fd0e95..486ed8141fc 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;
}