]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: clk: Make soc_clk_dump static
authorIgor Prusov <ivprusov@sberdevices.ru>
Thu, 9 Nov 2023 10:55:16 +0000 (13:55 +0300)
committerSean Anderson <seanga2@gmail.com>
Fri, 15 Dec 2023 18:05:55 +0000 (13:05 -0500)
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
cmd/clk.c
include/clk.h

index 4b9709d3ff936eaabb6383f191cc56252a083308..7bbcbfeda332d65446cdab5fe79c59a4b27f24c3 100644 (file)
--- 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;
index 249c0e0ab4252a713ada78fb3736a102a1b742a7..3d6394477be015ee07b8220238fb852f6936d46f 100644 (file)
@@ -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)