clk: imx: imx31: Remove the unused uart_clks[]
Subsystems (3)
Fabio Estevam
reviewerPATCH 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]
Reported-by kernel test robot <[email protected]>
Signed-off-by Fabio Estevam <[email protected]>
--- drivers/clk/imx/clk-imx31.c | 10 ---------- 1 file changed, 10 deletions(-)
drivers/clk/imx/clk-imx31.c +0 -10
@@ -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
Quoted 8 lines · Fabio Estevam
Since commit
30c1951790df("clk: imx: imx31: Removemx31_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]Reported-by kernel test robot <[email protected]>Signed-off-by Fabio Estevam <[email protected]>
Already picked up one patch from Lee Jones.
Shawn