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

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 <pulehui@huawei.com>
Link: https://lore.kernel.org/r/20210609061848.87415-1-pulehui@huawei.com
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Pu Lehui and committed by
Stephen Boyd
652c96bb d1312020

-23
-23
drivers/clk/qcom/gcc-mdm9607.c
··· 34 34 P_SLEEP_CLK, 35 35 }; 36 36 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 - 47 37 static struct clk_alpha_pll gpll0_early = { 48 38 .offset = 0x21000, 49 39 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT], ··· 102 112 .ops = &clk_pll_vote_ops, 103 113 }, 104 114 }; 105 - 106 - static const struct parent_map gcc_xo_gpll0_gpll1_map[] = { 107 - { P_XO, 0 }, 108 - { P_GPLL0, 1 }, 109 - { P_GPLL1, 2 }, 110 - }; 111 - 112 - static const struct clk_parent_data gcc_xo_gpll0_gpll1[] = { 113 - { .fw_name = "xo" }, 114 - { .hw = &gpll0.clkr.hw }, 115 - { .hw = &gpll1_vote.hw }, 116 - }; 117 - 118 115 119 116 static const struct parent_map gcc_xo_gpll0_gpll1_sleep_map[] = { 120 117 { P_XO, 0 },