]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
clk: rockchip: make clk_half_divider_ops static
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Thu, 17 Oct 2019 10:53:48 +0000 (11:53 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 31 Oct 2019 11:06:01 +0000 (12:06 +0100)
The clk_half_divider_ops is not used outside or declared
outside of drivers/clk/rockchip/clk-half-divider.c so make
it static to avoid the following warning:

drivers/clk/rockchip/clk-half-divider.c:142:22: warning: symbol 'clk_half_divider_ops' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20191017105348.8061-1-ben.dooks@codethink.co.uk
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-half-divider.c

index ba9f00dc9740c610af87c1a42f669067692cf426..b333fc28c94b6c517a42f814e89f3e539bc762a7 100644 (file)
@@ -139,12 +139,11 @@ static int clk_half_divider_set_rate(struct clk_hw *hw, unsigned long rate,
        return 0;
 }
 
-const struct clk_ops clk_half_divider_ops = {
+static const struct clk_ops clk_half_divider_ops = {
        .recalc_rate = clk_half_divider_recalc_rate,
        .round_rate = clk_half_divider_round_rate,
        .set_rate = clk_half_divider_set_rate,
 };
-EXPORT_SYMBOL_GPL(clk_half_divider_ops);
 
 /**
  * Register a clock branch.