Message ID | 20210128031248.27244-1-festevam@gmail.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | clk: imx: imx31: Remove the unused uart_clks[] | expand |
On Thu, Jan 28, 2021 at 12:12:48AM -0300, Fabio Estevam wrote: > 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 <lkp@intel.com> > Signed-off-by: Fabio Estevam <festevam@gmail.com> Already picked up one patch from Lee Jones. Shawn
diff --git a/drivers/clk/imx/clk-imx31.c b/drivers/clk/imx/clk-imx31.c index 7b13fb57d842..c44e18c6f63f 100644 --- a/drivers/clk/imx/clk-imx31.c +++ b/drivers/clk/imx/clk-imx31.c @@ -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);
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 <lkp@intel.com> Signed-off-by: Fabio Estevam <festevam@gmail.com> --- drivers/clk/imx/clk-imx31.c | 10 ---------- 1 file changed, 10 deletions(-)