linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: Remove unused variable
@ 2019-05-21 12:16 Philippe Mazenauer
  2019-06-06 17:55 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Philippe Mazenauer @ 2019-05-21 12:16 UTC (permalink / raw)
  Cc: Stephen Boyd, Michael Turquette, open list, Fabien Parent,
	Philippe Mazenauer, moderated list:ARM/Mediatek SoC support,
	Matthias Brugger, open list:COMMON CLK FRAMEWORK,
	moderated list:ARM/Mediatek SoC support

Variable 'ddrphycfg_parents' is defined static and initialized, but not
used in the file.

../drivers/clk/mediatek/clk-mt8516.c:234:27: warning: ‘ddrphycfg_parents’ defined but not used [-Wunused-const-variable=]
 static const char * const ddrphycfg_parents[] __initconst = {
                           ^~~~~~~~~~~~~~~~~

Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>
---
 drivers/clk/mediatek/clk-mt8516.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/clk/mediatek/clk-mt8516.c b/drivers/clk/mediatek/clk-mt8516.c
index 26fe43cc9ea2..9d4261ecc760 100644
--- a/drivers/clk/mediatek/clk-mt8516.c
+++ b/drivers/clk/mediatek/clk-mt8516.c
@@ -231,11 +231,6 @@ static const char * const nfi1x_pad_parents[] __initconst = {
 	"nfi1x_ck"
 };
 
-static const char * const ddrphycfg_parents[] __initconst = {
-	"clk26m_ck",
-	"mainpll_d16"
-};
-
 static const char * const usb_78m_parents[] __initconst = {
 	"clk_null",
 	"clk26m_ck",
-- 
2.17.1

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] clk: Remove unused variable
  2019-05-21 12:16 [PATCH] clk: Remove unused variable Philippe Mazenauer
@ 2019-06-06 17:55 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2019-06-06 17:55 UTC (permalink / raw)
  To: , Philippe Mazenauer
  Cc: Michael Turquette, open list, Fabien Parent, Philippe Mazenauer,
	moderated list:ARM/Mediatek SoC support, Matthias Brugger,
	open list:COMMON CLK FRAMEWORK,
	moderated list:ARM/Mediatek SoC support

Quoting Philippe Mazenauer (2019-05-21 05:16:14)
> Variable 'ddrphycfg_parents' is defined static and initialized, but not
> used in the file.
> 
> ../drivers/clk/mediatek/clk-mt8516.c:234:27: warning: ‘ddrphycfg_parents’ defined but not used [-Wunused-const-variable=]
>  static const char * const ddrphycfg_parents[] __initconst = {
>                            ^~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>
> ---

Applied to clk-next


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-06 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-21 12:16 [PATCH] clk: Remove unused variable Philippe Mazenauer
2019-06-06 17:55 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).