From: Igor Prusov Date: Thu, 9 Nov 2023 10:55:16 +0000 (+0300) Subject: cmd: clk: Make soc_clk_dump static X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5666558a6cb04b2f731a7a13d0bbaefa528e7616;p=u-boot.git cmd: clk: Make soc_clk_dump static After introducing dump to clk_ops there is no need to override or expose this symbol anymore. Reviewed-by: Patrice Chotard Tested-by: Patrice Chotard Reviewed-by: Sean Anderson Signed-off-by: Igor Prusov Link: https://lore.kernel.org/r/20231109105516.24892-9-ivprusov@sberdevices.ru --- diff --git a/cmd/clk.c b/cmd/clk.c index 4b9709d3ff..7bbcbfeda3 100644 --- a/cmd/clk.c +++ b/cmd/clk.c @@ -59,7 +59,7 @@ static void show_clks(struct udevice *dev, int depth, int last_flag) } } -int __weak soc_clk_dump(void) +static int soc_clk_dump(void) { struct udevice *dev; const struct clk_ops *ops; @@ -81,7 +81,7 @@ int __weak soc_clk_dump(void) return 0; } #else -int __weak soc_clk_dump(void) +static int soc_clk_dump(void) { puts("Not implemented\n"); return 1; diff --git a/include/clk.h b/include/clk.h index 249c0e0ab4..3d6394477b 100644 --- a/include/clk.h +++ b/include/clk.h @@ -676,8 +676,6 @@ static inline bool clk_valid(struct clk *clk) return clk && !!clk->dev; } -int soc_clk_dump(void); - #endif #define clk_prepare_enable(clk) clk_enable(clk)