Skip to content

Commit f1f49cc

Browse files
arndbandersson
authored andcommitted
clk: qcom: remove unused data from gcc-ipq5424.c
The newly added driver causes a warnings when enabling -Wunused-const-variables: drivers/clk/qcom/gcc-ipq5424.c:1064:30: error: 'ftbl_gcc_q6_axi_clk_src' defined but not used [-Werror=unused-const-variable=] 1064 | static const struct freq_tbl ftbl_gcc_q6_axi_clk_src[] = { | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/qcom/gcc-ipq5424.c:957:30: error: 'ftbl_gcc_qpic_clk_src' defined but not used [-Werror=unused-const-variable=] 957 | static const struct freq_tbl ftbl_gcc_qpic_clk_src[] = { | ^~~~~~~~~~~~~~~~~~~~~ drivers/clk/qcom/gcc-ipq5424.c:497:30: error: 'ftbl_gcc_qupv3_2x_core_clk_src' defined but not used [-Werror=unused-const-variable=] 497 | static const struct freq_tbl ftbl_gcc_qupv3_2x_core_clk_src[] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In order to hopefully enable this warning by default in the future, remove the data for now. If it gets used in the future, it can trivially get added back. Fixes: 21b5d5a ("clk: qcom: add Global Clock controller (GCC) driver for IPQ5424 SoC") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 95eeb2f commit f1f49cc

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

drivers/clk/qcom/gcc-ipq5424.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -494,11 +494,6 @@ static struct clk_rcg2 gcc_pcie_aux_clk_src = {
494494
},
495495
};
496496

497-
static const struct freq_tbl ftbl_gcc_qupv3_2x_core_clk_src[] = {
498-
F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
499-
{ }
500-
};
501-
502497
static const struct freq_tbl ftbl_gcc_qupv3_i2c0_clk_src[] = {
503498
F(4800000, P_XO, 5, 0, 0),
504499
F(9600000, P_XO, 2.5, 0, 0),
@@ -954,13 +949,6 @@ static struct clk_rcg2 gcc_qpic_io_macro_clk_src = {
954949
},
955950
};
956951

957-
static const struct freq_tbl ftbl_gcc_qpic_clk_src[] = {
958-
F(24000000, P_XO, 1, 0, 0),
959-
F(100000000, P_GPLL0_OUT_MAIN, 8, 0, 0),
960-
F(200000000, P_GPLL0_OUT_MAIN, 4, 0, 0),
961-
{ }
962-
};
963-
964952
static struct clk_rcg2 gcc_qpic_clk_src = {
965953
.cmd_rcgr = 0x32020,
966954
.mnd_width = 0,
@@ -1061,12 +1049,6 @@ static struct clk_regmap_div gcc_qupv3_i2c1_div_clk_src = {
10611049
},
10621050
};
10631051

1064-
static const struct freq_tbl ftbl_gcc_q6_axi_clk_src[] = {
1065-
F(480000000, P_GPLL4_OUT_AUX, 2.5, 0, 0),
1066-
F(533333333, P_GPLL0_OUT_MAIN, 1.5, 0, 0),
1067-
{ }
1068-
};
1069-
10701052
static struct clk_regmap_div gcc_usb0_mock_utmi_div_clk_src = {
10711053
.reg = 0x2c040,
10721054
.shift = 0,

0 commit comments

Comments
 (0)