Skip to content

Commit 83e56ec

Browse files
Elaine Zhangscpcom
authored andcommitted
clk: rockchip: fix up the rockchip_rk3066_pll_clk_set_by_auto func
Change-Id: Id7c561a50a16918c2943f79701ab72c6eaccdc41 Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
1 parent 037e036 commit 83e56ec

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

drivers/clk/rockchip/clk-pll.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,9 @@ rockchip_rk3066_pll_clk_set_by_auto(struct rockchip_clk_pll *pll,
234234

235235
/* output the best PLL setting */
236236
if ((nr_out <= PLL_NR_MAX) && (no_out > 0)) {
237-
if (rate_table->nr && rate_table->nf && rate_table->no) {
238-
rate_table->nr = nr_out;
239-
rate_table->nf = nf_out;
240-
rate_table->no = no_out;
241-
}
237+
rate_table->nr = nr_out;
238+
rate_table->nf = nf_out;
239+
rate_table->no = no_out;
242240
} else {
243241
return NULL;
244242
}

0 commit comments

Comments
 (0)