clk: mmp: fix sparse non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 9 Dec 2014 01:07:30 +0000 (09:07 +0800)
committerMichael Turquette <mturquette@linaro.org>
Thu, 11 Dec 2014 20:14:09 +0000 (12:14 -0800)
Fixes the following sparse warnings:

drivers/clk/mmp/clk-frac.c:113:6: warning:
 symbol 'clk_factor_init' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/mmp/clk-frac.c

index eeba52c2def6df56d25bf8d641d7fa38e261db6d..584a9927993b41f73df73f40ec598f4e7d45ca1d 100644 (file)
@@ -110,7 +110,7 @@ static int clk_factor_set_rate(struct clk_hw *hw, unsigned long drate,
        return 0;
 }
 
-void clk_factor_init(struct clk_hw *hw)
+static void clk_factor_init(struct clk_hw *hw)
 {
        struct mmp_clk_factor *factor = to_clk_factor(hw);
        struct mmp_clk_factor_masks *masks = factor->masks;