clk: hisilicon: Mark phase_ops static
authorStephen Boyd <sboyd@kernel.org>
Wed, 14 Mar 2018 21:34:16 +0000 (14:34 -0700)
committerStephen Boyd <sboyd@kernel.org>
Wed, 14 Mar 2018 21:34:16 +0000 (14:34 -0700)
Sparse rightfully complains:

drivers/clk/hisilicon/clk-hisi-phase.c:88:22: warning: symbol 'clk_phase_ops' was not declared. Should it be static?
drivers/clk/hisilicon/clk-hisi-phase.c:88:22: warning: symbol 'clk_phase_ops' was not declared. Should it be static?

Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/hisilicon/clk-hisi-phase.c

index 42ce157ff82836c66c4fba4271f10511093cef73..5bce9297b78b16a1aa6002a7edab8711b61ba945 100644 (file)
@@ -85,7 +85,7 @@ static int hisi_clk_set_phase(struct clk_hw *hw, int degrees)
        return 0;
 }
 
-const struct clk_ops clk_phase_ops = {
+static const struct clk_ops clk_phase_ops = {
        .get_phase = hisi_clk_get_phase,
        .set_phase = hisi_clk_set_phase,
 };