clk: Don't set clk->new_rate twice
authorViresh Kumar <viresh.kumar@st.com>
Tue, 17 Apr 2012 11:15:38 +0000 (16:45 +0530)
committerMike Turquette <mturquette@linaro.org>
Tue, 24 Apr 2012 23:37:41 +0000 (16:37 -0700)
commit1b2f99037a29d48d03ddd2fd0dc117888ec737f4
treee914fe01d0cda61112866d4db1e2e6b71d7db57d
parent182f9e8cd5e451911a37f121f942409205ede0d6
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>
drivers/clk/clk.c