diff options
Diffstat (limited to 'arch/arm/mach-tegra/tegra12_clocks.c')
-rw-r--r-- | arch/arm/mach-tegra/tegra12_clocks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra12_clocks.c b/arch/arm/mach-tegra/tegra12_clocks.c index 3fd6c70cb42d..6d089771eab3 100644 --- a/arch/arm/mach-tegra/tegra12_clocks.c +++ b/arch/arm/mach-tegra/tegra12_clocks.c @@ -5256,6 +5256,7 @@ static long tegra12_clk_cbus_round_updown(struct clk *c, unsigned long rate, bool up) { int i; + const int *millivolts; if (!c->dvfs) { if (!c->min_rate) @@ -5277,9 +5278,10 @@ static long tegra12_clk_cbus_round_updown(struct clk *c, unsigned long rate, } rate = max(rate, c->min_rate); + millivolts = tegra_dvfs_get_millivolts_pll(c->dvfs); for (i = 0; ; i++) { unsigned long f = c->dvfs->freqs[i]; - int mv = c->dvfs->millivolts[i]; + int mv = millivolts[i]; if ((f >= rate) || (mv >= c->dvfs->max_millivolts) || ((i + 1) >= c->dvfs->num_freqs)) { if (!up && i && (f > rate)) |