clk: rockchip: Mark rockchip_fractional_approximation static
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 23 Aug 2017 22:35:41 +0000 (15:35 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 23 Aug 2017 22:35:41 +0000 (15:35 -0700)
Silence the sparse warning

clk/rockchip/clk.c:172:6: warning: symbol 'rockchip_fractional_approximation' was not declared. Should it be static?

Cc: Elaine Zhang <zhangqing@rock-chips.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/rockchip/clk.c

index b6db79a00602b22016f65a046946dc733531797d..35dbd63c2f49b03b87866b870b0700aebf333867 100644 (file)
@@ -169,7 +169,7 @@ static int rockchip_clk_frac_notifier_cb(struct notifier_block *nb,
  * fractional divider must set that denominator is 20 times larger than
  * numerator to generate precise clock frequency.
  */
-void rockchip_fractional_approximation(struct clk_hw *hw,
+static void rockchip_fractional_approximation(struct clk_hw *hw,
                unsigned long rate, unsigned long *parent_rate,
                unsigned long *m, unsigned long *n)
 {