Skip to content

Commit 3bdf364

Browse files
YueHaibingbebarino
authored andcommitted
clk: armada-xp: remove unused code
drivers/clk/mvebu/armada-xp.c:171:38: warning: mv98dx3236_coreclks defined but not used [-Wunused-const-variable=] drivers/clk/mvebu/armada-xp.c:213:41: warning: mv98dx3236_gating_desc defined but not used [-Wunused-const-variable=] They are not used since commit 3370726 ("clk: mvebu: Expand mv98dx3236-core-clock support"). Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 727e12c commit 3bdf364

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

drivers/clk/mvebu/armada-xp.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ static u32 __init axp_get_tclk_freq(void __iomem *sar)
5050
return 250000000;
5151
}
5252

53-
/* MV98DX3236 TCLK frequency is fixed to 200MHz */
54-
static u32 __init mv98dx3236_get_tclk_freq(void __iomem *sar)
55-
{
56-
return 200000000;
57-
}
58-
5953
static const u32 axp_cpu_freqs[] __initconst = {
6054
1000000000,
6155
1066000000,
@@ -93,12 +87,6 @@ static u32 __init axp_get_cpu_freq(void __iomem *sar)
9387
return cpu_freq;
9488
}
9589

96-
/* MV98DX3236 CLK frequency is fixed to 800MHz */
97-
static u32 __init mv98dx3236_get_cpu_freq(void __iomem *sar)
98-
{
99-
return 800000000;
100-
}
101-
10290
static const int axp_nbclk_ratios[32][2] __initconst = {
10391
{0, 1}, {1, 2}, {2, 2}, {2, 2},
10492
{1, 2}, {1, 2}, {1, 1}, {2, 3},
@@ -168,11 +156,6 @@ static const struct coreclk_soc_desc axp_coreclks = {
168156
.num_ratios = ARRAY_SIZE(axp_coreclk_ratios),
169157
};
170158

171-
static const struct coreclk_soc_desc mv98dx3236_coreclks = {
172-
.get_tclk_freq = mv98dx3236_get_tclk_freq,
173-
.get_cpu_freq = mv98dx3236_get_cpu_freq,
174-
};
175-
176159
/*
177160
* Clock Gating Control
178161
*/
@@ -210,15 +193,6 @@ static const struct clk_gating_soc_desc axp_gating_desc[] __initconst = {
210193
{ }
211194
};
212195

213-
static const struct clk_gating_soc_desc mv98dx3236_gating_desc[] __initconst = {
214-
{ "ge1", NULL, 3, 0 },
215-
{ "ge0", NULL, 4, 0 },
216-
{ "pex00", NULL, 5, 0 },
217-
{ "sdio", NULL, 17, 0 },
218-
{ "xor0", NULL, 22, 0 },
219-
{ }
220-
};
221-
222196
static void __init axp_clk_init(struct device_node *np)
223197
{
224198
struct device_node *cgnp =

0 commit comments

Comments
 (0)