Skip to content

Commit

Permalink
regulator: fix enabling regulator issue on max8925
Browse files Browse the repository at this point in the history
Fix regulator enabling issue that is caused by typo error in is_enabled().

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Haojian Zhuang authored and Liam Girdwood committed Apr 28, 2010
1 parent 1600f9d commit 4b99fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/max8925-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static int max8925_is_enabled(struct regulator_dev *rdev)
struct max8925_regulator_info *info = rdev_get_drvdata(rdev);
int ret;

ret = max8925_reg_read(info->i2c, info->vol_reg);
ret = max8925_reg_read(info->i2c, info->enable_reg);
if (ret < 0)
return ret;

Expand Down

0 comments on commit 4b99fef

Please sign in to comment.