Skip to content

Commit 652c96b

Browse files
Pu Lehuibebarino
authored andcommitted
clk/qcom: Remove unused variables
Fix gcc '-Wunused-const-variable' warnings: drivers/clk/qcom/gcc-mdm9607.c:122:37: warning: 'gcc_xo_gpll0_gpll1' defined but not used [-Wunused-const-variable=] drivers/clk/qcom/gcc-mdm9607.c:116:32: warning: 'gcc_xo_gpll0_gpll1_map' defined but not used [-Wunused-const-variable=] drivers/clk/qcom/gcc-mdm9607.c:42:37: warning: 'gcc_xo_sleep' defined but not used [-Wunused-const-variable=] drivers/clk/qcom/gcc-mdm9607.c:37:32: warning: 'gcc_xo_sleep_map' defined but not used [-Wunused-const-variable=] Let's remove them. Signed-off-by: Pu Lehui <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reported-by: kbuild test robot <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent d131202 commit 652c96b

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

drivers/clk/qcom/gcc-mdm9607.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ enum {
3434
P_SLEEP_CLK,
3535
};
3636

37-
static const struct parent_map gcc_xo_sleep_map[] = {
38-
{ P_XO, 0 },
39-
{ P_SLEEP_CLK, 6 }
40-
};
41-
42-
static const struct clk_parent_data gcc_xo_sleep[] = {
43-
{ .fw_name = "xo" },
44-
{ .fw_name = "sleep_clk" },
45-
};
46-
4737
static struct clk_alpha_pll gpll0_early = {
4838
.offset = 0x21000,
4939
.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
@@ -113,19 +103,6 @@ static struct clk_regmap gpll1_vote = {
113103
},
114104
};
115105

116-
static const struct parent_map gcc_xo_gpll0_gpll1_map[] = {
117-
{ P_XO, 0 },
118-
{ P_GPLL0, 1 },
119-
{ P_GPLL1, 2 },
120-
};
121-
122-
static const struct clk_parent_data gcc_xo_gpll0_gpll1[] = {
123-
{ .fw_name = "xo" },
124-
{ .hw = &gpll0.clkr.hw },
125-
{ .hw = &gpll1_vote.hw },
126-
};
127-
128-
129106
static const struct parent_map gcc_xo_gpll0_gpll1_sleep_map[] = {
130107
{ P_XO, 0 },
131108
{ P_GPLL0, 1 },

0 commit comments

Comments
 (0)