clk: mmp: add init callback for clk-frac
authorChao Xie <chao.xie@marvell.com>
Fri, 31 Oct 2014 02:13:43 +0000 (10:13 +0800)
committerMichael Turquette <mturquette@linaro.org>
Thu, 13 Nov 2014 00:33:43 +0000 (16:33 -0800)
commit0c4c11f3556b244469af32a7bc13485ecbbc77f9
treefa38971cdee67b4d09178816a3c59f374ced668d
parent61256133919e76ea51e458c9713a9ee9d9ec4a67
clk: mmp: add init callback for clk-frac

For the clk-frac, we need to make sure that the initial
clock rate is one item of the table.
If it is not, we use the first item in the table by default.

Signed-off-by: Chao Xie <chao.xie@marvell.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/mmp/clk-frac.c