Skip to content

Commit

Permalink
regulator: max8952 - fix wrong gpio valid check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonghwan Choi authored and Liam Girdwood committed Jul 8, 2011
1 parent 902daf6 commit e2cf313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/max8952.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e2cf313

Please sign in to comment.