regulator: palmas: Fix "enable_reg" to point to the correct reg for SMPS10
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 30 May 2013 10:25:09 +0000 (15:55 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 30 May 2013 10:55:55 +0000 (11:55 +0100)
regulator_enable_regmap() uses enable_reg to enable the regulator.
But enable_reg for smps10 points to SMPS10_STATUS which is a
read-only register. Fixed the same by having enable_reg
set to SMPS10_CTRL.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
drivers/regulator/palmas-regulator.c

index ced74167a60095066ec7a58ee3bf2f861cea3de2..3ae44ac12a94c40a9f6fac05df05ad882b2be53b 100644 (file)
@@ -878,7 +878,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
                        pmic->desc[id].vsel_mask = SMPS10_VSEL;
                        pmic->desc[id].enable_reg =
                                        PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE,
-                                                       PALMAS_SMPS10_STATUS);
+                                                       PALMAS_SMPS10_CTRL);
                        pmic->desc[id].enable_mask = SMPS10_BOOST_EN;
                        pmic->desc[id].min_uV = 3750000;
                        pmic->desc[id].uV_step = 1250000;