regulator: max8973: Fix callback setting for max8973_dcdc_ops.enable
authorAxel Lin <axel.lin@ingics.com>
Thu, 22 Nov 2012 01:47:08 +0000 (09:47 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 22 Nov 2012 02:07:10 +0000 (11:07 +0900)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8973-regulator.c

index e6328f9..140ff9d 100644 (file)
@@ -401,7 +401,7 @@ static int __devinit max8973_probe(struct i2c_client *client,
        if (pdata->enable_ext_control) {
                max->desc.enable_reg = MAX8973_VOUT;
                max->desc.enable_mask = MAX8973_VOUT_ENABLE;
-               max8973_dcdc_ops.enable = regulator_is_enabled_regmap;
+               max8973_dcdc_ops.enable = regulator_enable_regmap;
                max8973_dcdc_ops.disable = regulator_disable_regmap;
                max8973_dcdc_ops.is_enabled = regulator_is_enabled_regmap;
        }