Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: sprd: mark the local clock symbols static

There's a few pll gate clocks which were not marked with static, and
those clock are used only in the current file, so add static key word
for them.

Fixes: 0e4b8a2349f3 ("clk: sprd: add clocks support for SC9863A")
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lkml.kernel.org/r/20200519030036.1785-1-zhang.lyra@gmail.com
Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Chunyan Zhang and committed by
Stephen Boyd
3aff9b54 8f3d9f35

+16 -16
+16 -16
drivers/clk/sprd/sc9863a-clk.c
··· 23 23 #include "pll.h" 24 24 25 25 /* mpll*_gate clocks control cpu cores, they were enabled by default */ 26 - SPRD_PLL_SC_GATE_CLK_FW_NAME(mpll0_gate, "mpll0-gate", "ext-26m", 0x94, 27 - 0x1000, BIT(0), CLK_IGNORE_UNUSED, 0, 240); 28 - SPRD_PLL_SC_GATE_CLK_FW_NAME(dpll0_gate, "dpll0-gate", "ext-26m", 0x98, 29 - 0x1000, BIT(0), 0, 0, 240); 30 - SPRD_PLL_SC_GATE_CLK_FW_NAME(lpll_gate, "lpll-gate", "ext-26m", 0x9c, 31 - 0x1000, BIT(0), 0, 0, 240); 32 - SPRD_PLL_SC_GATE_CLK_FW_NAME(gpll_gate, "gpll-gate", "ext-26m", 0xa8, 33 - 0x1000, BIT(0), 0, 0, 240); 34 - SPRD_PLL_SC_GATE_CLK_FW_NAME(dpll1_gate, "dpll1-gate", "ext-26m", 0x1dc, 35 - 0x1000, BIT(0), 0, 0, 240); 36 - SPRD_PLL_SC_GATE_CLK_FW_NAME(mpll1_gate, "mpll1-gate", "ext-26m", 0x1e0, 37 - 0x1000, BIT(0), CLK_IGNORE_UNUSED, 0, 240); 38 - SPRD_PLL_SC_GATE_CLK_FW_NAME(mpll2_gate, "mpll2-gate", "ext-26m", 0x1e4, 39 - 0x1000, BIT(0), CLK_IGNORE_UNUSED, 0, 240); 40 - SPRD_PLL_SC_GATE_CLK_FW_NAME(isppll_gate, "isppll-gate", "ext-26m", 0x1e8, 41 - 0x1000, BIT(0), 0, 0, 240); 26 + static SPRD_PLL_SC_GATE_CLK_FW_NAME(mpll0_gate, "mpll0-gate", "ext-26m", 0x94, 27 + 0x1000, BIT(0), CLK_IGNORE_UNUSED, 0, 240); 28 + static SPRD_PLL_SC_GATE_CLK_FW_NAME(dpll0_gate, "dpll0-gate", "ext-26m", 0x98, 29 + 0x1000, BIT(0), 0, 0, 240); 30 + static SPRD_PLL_SC_GATE_CLK_FW_NAME(lpll_gate, "lpll-gate", "ext-26m", 0x9c, 31 + 0x1000, BIT(0), 0, 0, 240); 32 + static SPRD_PLL_SC_GATE_CLK_FW_NAME(gpll_gate, "gpll-gate", "ext-26m", 0xa8, 33 + 0x1000, BIT(0), 0, 0, 240); 34 + static SPRD_PLL_SC_GATE_CLK_FW_NAME(dpll1_gate, "dpll1-gate", "ext-26m", 0x1dc, 35 + 0x1000, BIT(0), 0, 0, 240); 36 + static SPRD_PLL_SC_GATE_CLK_FW_NAME(mpll1_gate, "mpll1-gate", "ext-26m", 0x1e0, 37 + 0x1000, BIT(0), CLK_IGNORE_UNUSED, 0, 240); 38 + static SPRD_PLL_SC_GATE_CLK_FW_NAME(mpll2_gate, "mpll2-gate", "ext-26m", 0x1e4, 39 + 0x1000, BIT(0), CLK_IGNORE_UNUSED, 0, 240); 40 + static SPRD_PLL_SC_GATE_CLK_FW_NAME(isppll_gate, "isppll-gate", "ext-26m", 41 + 0x1e8, 0x1000, BIT(0), 0, 0, 240); 42 42 43 43 static struct sprd_clk_common *sc9863a_pmu_gate_clks[] = { 44 44 /* address base is 0x402b0000 */