Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: Don't set clk->new_rate twice

if (!clk->ops->round_rate && (clk->flags & CLK_SET_RATE_PARENT)) is true, then
we don't need to set clk->new_rate here, as we will call clk_calc_subtree()
afterwards and it also sets clk->new_rate.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>

authored by

Viresh Kumar and committed by
Mike Turquette
1b2f9903 182f9e8c

+1 -1
+1 -1
drivers/clk/clk.c
··· 790 790 791 791 if (!clk->ops->round_rate) { 792 792 top = clk_calc_new_rates(clk->parent, rate); 793 - new_rate = clk->new_rate = clk->parent->new_rate; 793 + new_rate = clk->parent->new_rate; 794 794 795 795 goto out; 796 796 }