Skip to content

Commit

Permalink
clk: Don't set clk->new_rate twice
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Viresh Kumar authored and Mike Turquette committed Apr 24, 2012
1 parent 182f9e8 commit 1b2f990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ static struct clk *clk_calc_new_rates(struct clk *clk, unsigned long rate)

if (!clk->ops->round_rate) {
top = clk_calc_new_rates(clk->parent, rate);
new_rate = clk->new_rate = clk->parent->new_rate;
new_rate = clk->parent->new_rate;

goto out;
}
Expand Down

0 comments on commit 1b2f990

Please sign in to comment.