summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max8952.c
diff options
context:
space:
mode:
authorJonghwan Choi <jhbird.choi@samsung.com>2011-06-15 10:54:12 +0200
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-07-08 20:14:57 +0200
commite2cf3137aaa23faf2b8c1335671f1a0a0d90aab5 (patch)
tree9d0e14dbe35a2de5f941ada196eb97cce18e2f60 /drivers/regulator/max8952.c
parentMerge branch 'gpio/merge' of git://git.secretlab.ca/git/linux-2.6 (diff)
downloadlinux-e2cf3137aaa23faf2b8c1335671f1a0a0d90aab5.tar.xz
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.c2
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;
}