From: Richard Fitzgerald Date: Tue, 2 Jun 2015 10:53:36 +0000 (+0100) Subject: regulator: arizona-ldo1: Do not control DVFS clocking from regulator X-Git-Tag: v4.2-rc3~17^2~16^2~1^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69a6582eeb17dc083b2510f1ca2eaa54ff679b49;p=platform%2Fkernel%2Flinux-exynos.git regulator: arizona-ldo1: Do not control DVFS clocking from regulator 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 Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c index a1d07d3..1e492fe 100644 --- a/drivers/regulator/arizona-ldo1.c +++ b/drivers/regulator/arizona-ldo1.c @@ -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;