regulator: arizona-ldo1: Do not control DVFS clocking from regulator
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Tue, 2 Jun 2015 10:53:36 +0000 (11:53 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jun 2015 20:07:21 +0000 (21:07 +0100)
Using the driver for the internal regulator to also enable/disable
the codec internal clock frequency controller is an unexpected
side-effect for a regulator, and also means that the core clocks
won't be changed as expected if an external regulator is used to
power the codec.

The DVFS is now handled by the codec driver so can be removed from
the LDO1 driver.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/arizona-ldo1.c

index a1d07d347c20e30af065d204d94a314d18c408e3..1e492feaa9c66014c26871353d0df601521c87e6 100644 (file)
@@ -78,11 +78,6 @@ static int arizona_ldo1_hc_set_voltage_sel(struct regulator_dev *rdev,
        if (ret != 0)
                return ret;
 
-       ret = regmap_update_bits(regmap, ARIZONA_DYNAMIC_FREQUENCY_SCALING_1,
-                                ARIZONA_SUBSYS_MAX_FREQ, val);
-       if (ret != 0)
-               return ret;
-
        if (val)
                return 0;