diff options
author | Igor Prusov <ivprusov@sberdevices.ru> | 2023-11-09 13:55:16 +0300 |
---|---|---|
committer | Sean Anderson <seanga2@gmail.com> | 2023-12-15 13:05:55 -0500 |
commit | 5666558a6cb04b2f731a7a13d0bbaefa528e7616 (patch) | |
tree | 7313dc79609a8c0c1349f70d504fd25b6ee77486 | |
parent | bc3e313ff6af4b5cb09749185d0602a3d4b9b240 (diff) | |
download | u-boot-5666558a6cb04b2f731a7a13d0bbaefa528e7616.tar.gz u-boot-5666558a6cb04b2f731a7a13d0bbaefa528e7616.tar.bz2 u-boot-5666558a6cb04b2f731a7a13d0bbaefa528e7616.zip |
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 <patrice.chotard@foss.st.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Igor Prusov <ivprusov@sberdevices.ru>
Link: https://lore.kernel.org/r/20231109105516.24892-9-ivprusov@sberdevices.ru
-rw-r--r-- | cmd/clk.c | 4 | ||||
-rw-r--r-- | include/clk.h | 2 |
2 files changed, 2 insertions, 4 deletions
@@ -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) |