]> git.dujemihanovic.xyz Git - linux.git/commit
clk: rockchip: remove unused mclk_pdm0_p/pdm0_p definitions
authorArnd Bergmann <arnd@arndb.de>
Mon, 9 Sep 2024 12:11:05 +0000 (12:11 +0000)
committerStephen Boyd <sboyd@kernel.org>
Mon, 9 Sep 2024 21:10:32 +0000 (14:10 -0700)
commit4500f510d9bb4e8e283fb249a7adb4ecd6136f26
tree913e6634897e55bc295e5293f20c367c1d7c9c5b
parentdf947ad4cc0b6cf8a6e8dffb3b9095915253b8c8
clk: rockchip: remove unused mclk_pdm0_p/pdm0_p definitions

When -Wunused-const-variable is enabled (not the default),
there is a warning about two definitions in this file:

In file included from drivers/clk/rockchip/clk-rk3576.c:14:
drivers/clk/rockchip/clk-rk3576.c:334:7: error: 'mclk_pdm0_p' defined but not used [-Werror=unused-const-variable=]
  334 | PNAME(mclk_pdm0_p)                      = { "mclk_pdm0_src_top", "xin24m" };
      |       ^~~~~~~~~~~
drivers/clk/rockchip/clk.h:564:43: note: in definition of macro 'PNAME'
  564 | #define PNAME(x) static const char *const x[] __initconst
      |                                           ^
drivers/clk/rockchip/clk-rk3576.c:333:7: error: 'pdm0_p' defined but not used [-Werror=unused-const-variable=]
  333 | PNAME(pdm0_p)                           = { "clk_pdm0_src_top", "xin24m" };
      |       ^~~~~~
drivers/clk/rockchip/clk.h:564:43: note: in definition of macro 'PNAME'
  564 | #define PNAME(x) static const char *const x[] __initconst
      |                                           ^

Remove them for the moment. If they are needed later, they can
be added back at that point.

Fixes: cc40f5baa91b ("clk: rockchip: Add clock controller for the RK3576")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240909121116.254036-1-arnd@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/rockchip/clk-rk3576.c