浏览代码

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>
Viresh Kumar 13 年之前
父节点
当前提交
1b2f99037a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/clk/clk.c

+ 1 - 1
drivers/clk/clk.c

@@ -790,7 +790,7 @@ static struct clk *clk_calc_new_rates(struct clk *clk, unsigned long rate)
 
 
 	if (!clk->ops->round_rate) {
 	if (!clk->ops->round_rate) {
 		top = clk_calc_new_rates(clk->parent, 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;
 		goto out;
 	}
 	}