regulator: fix enabling regulator issue on max8925
authorHaojian Zhuang <haojian.zhuang@marvell.com>
Tue, 6 Apr 2010 10:19:15 +0000 (06:19 -0400)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 28 Apr 2010 14:24:34 +0000 (15:24 +0100)
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>
drivers/regulator/max8925-regulator.c

index b6218f11c957ada5b98d5f3bd50d5c2093260ddd..552cad85ae5a2418ce7aec4430e3f111cb78c5c0 100644 (file)
@@ -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;