cpufreq: mt8173: remove redundant regulator_get_voltage() call
authorPi-Cheng Chen <pi-cheng.chen@linaro.org>
Sun, 29 Nov 2015 08:31:36 +0000 (16:31 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Dec 2015 23:27:33 +0000 (00:27 +0100)
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 <pi-cheng.chen@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/mt8173-cpufreq.c

index c438109464461afdd8bfc22bfa6720cc7d0c8ef7..750cda7876ac5ee946d5a96b21d6010e996a888b 100644 (file)
@@ -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);