From: Pi-Cheng Chen Date: Sun, 29 Nov 2015 08:31:36 +0000 (+0800) Subject: cpufreq: mt8173: remove redundant regulator_get_voltage() call X-Git-Tag: v4.5-rc1~125^2~3^2~10^2^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=93625d52e7a74492416f77fed945ba34e0ae0c18;p=karo-tx-linux.git cpufreq: mt8173: remove redundant regulator_get_voltage() call Remove redundant regulator_get_voltage() call to get Vsram value since it will be obtained later at the beginning of voltage tracking loop. Signed-off-by: Pi-Cheng Chen Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/mt8173-cpufreq.c b/drivers/cpufreq/mt8173-cpufreq.c index c43810946446..750cda7876ac 100644 --- a/drivers/cpufreq/mt8173-cpufreq.c +++ b/drivers/cpufreq/mt8173-cpufreq.c @@ -59,7 +59,6 @@ static int mtk_cpufreq_voltage_tracking(struct mtk_cpu_dvfs_info *info, int old_vproc, old_vsram, new_vsram, vsram, vproc, ret; old_vproc = regulator_get_voltage(proc_reg); - old_vsram = regulator_get_voltage(sram_reg); /* Vsram should not exceed the maximum allowed voltage of SoC. */ new_vsram = min(new_vproc + MIN_VOLT_SHIFT, MAX_VOLT_LIMIT);