clk: mmp: Silence sparse warnings
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 1 May 2015 21:03:08 +0000 (14:03 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 15 May 2015 00:11:29 +0000 (17:11 -0700)
drivers/clk/mmp/clk-apbc.c:118:16: warning: symbol 'clk_apbc_ops' was not declared. Should it be static?
drivers/clk/mmp/clk-apmu.c:64:16: warning: symbol 'clk_apmu_ops' was not declared. Should it be static?

Cc: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mmp/clk-apbc.c
drivers/clk/mmp/clk-apmu.c

index d14120eaa71f4c5d5498814aeee91a46d9012283..09d41c717c52830efd22849100deb01e9f9252fb 100644 (file)
@@ -115,7 +115,7 @@ static void clk_apbc_unprepare(struct clk_hw *hw)
                spin_unlock_irqrestore(apbc->lock, flags);
 }
 
-struct clk_ops clk_apbc_ops = {
+static struct clk_ops clk_apbc_ops = {
        .prepare = clk_apbc_prepare,
        .unprepare = clk_apbc_unprepare,
 };
index abe182b2377f04889cbfd85f3ca3ef332b786a79..cdcf2d7f321e0d5becfaa90b199d9839bcc9d81a 100644 (file)
@@ -61,7 +61,7 @@ static void clk_apmu_disable(struct clk_hw *hw)
                spin_unlock_irqrestore(apmu->lock, flags);
 }
 
-struct clk_ops clk_apmu_ops = {
+static struct clk_ops clk_apmu_ops = {
        .enable = clk_apmu_enable,
        .disable = clk_apmu_disable,
 };