Skip to contentSkip to conversation

clk: imx: imx31: Remove the unused uart_clks[]

PATCH In review Fabio Estevam 2 participants 2 messages Jan 28, 2021 – Jan 30, 2021

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 clk: imx: imx31: Remove the unused uart_clks[]

Since commit 30c1951790df ("clk: imx: imx31: Remove mx31_clocks_init()") uart_clks[] is no longer used, so remove it to avoid the following build warning:

drivers/clk/imx/clk-imx31.c:54:28: warning: unused variable 'uart_clks' [-Wunused-const-variable]

---
 drivers/clk/imx/clk-imx31.c | 10 ----------
 1 file changed, 10 deletions(-)
drivers/clk/imx/clk-imx31.c +0 -10
index 7b13fb57d842..c44e18c6f63f 100644
@@ -51,16 +51,6 @@ enum mx31_clks {
 static struct clk *clk[clk_max];
 static struct clk_onecell_data clk_data;
 
-static struct clk ** const uart_clks[] __initconst = {
-	&clk[ipg],
-	&clk[uart1_gate],
-	&clk[uart2_gate],
-	&clk[uart3_gate],
-	&clk[uart4_gate],
-	&clk[uart5_gate],
-	NULL
-};
-
 static void __init _mx31_clocks_init(void __iomem *base, unsigned long fref)
 {
 	clk[dummy] = imx_clk_fixed("dummy", 0);
Signature · 1 line
2.25.1
#1 lore raw
Quoted 8 lines · Fabio Estevam

Since commit 30c1951790df ("clk: imx: imx31: Remove mx31_clocks_init()") uart_clks[] is no longer used, so remove it to avoid the following build warning:

drivers/clk/imx/clk-imx31.c:54:28: warning: unused variable 'uart_clks' [-Wunused-const-variable]

Already picked up one patch from Lee Jones.

Shawn