* [PATCH] clk: imx: imx31: Remove the unused uart_clks[]
@ 2021-01-28 3:12 Fabio Estevam
2021-01-30 14:08 ` Shawn Guo
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2021-01-28 3:12 UTC (permalink / raw)
To: shawnguo; +Cc: sboyd, linux-imx, linux-clk, Fabio Estevam, kernel test robot
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(-)
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);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] clk: imx: imx31: Remove the unused uart_clks[]
2021-01-28 3:12 [PATCH] clk: imx: imx31: Remove the unused uart_clks[] Fabio Estevam
@ 2021-01-30 14:08 ` Shawn Guo
0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2021-01-30 14:08 UTC (permalink / raw)
To: Fabio Estevam; +Cc: sboyd, linux-imx, linux-clk, kernel test robot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-30 14:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-28 3:12 [PATCH] clk: imx: imx31: Remove the unused uart_clks[] Fabio Estevam
2021-01-30 14:08 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox