]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: mediatek: make mtk_pll_early_init() static
authorDavid Lechner <dlechner@baylibre.com>
Mon, 9 Feb 2026 16:39:29 +0000 (10:39 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 18 Feb 2026 17:57:14 +0000 (11:57 -0600)
Make the mtk_pll_early_init() function static in several files. It is
only used within those files, so there is no need to have it in the
global namespace.

Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>
arch/arm/mach-mediatek/mt7629/init.c
arch/arm/mach-mediatek/mt8516/init.c

index 7cb8b72c364c0ba88059ac04908c87e127616783..ff027ed03ef22ca44d32ff96c2ae2c168a95bfc9 100644 (file)
@@ -27,7 +27,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-int mtk_pll_early_init(void)
+static int mtk_pll_early_init(void)
 {
        unsigned long pll_rates[] = {
                [CLK_APMIXED_ARMPLL] = 1250000000,
index 892bd441a33bd1a630f33576c5ec8b8d3ecf74cc..82f8c5097450721b4ff5462852709e833d43e231 100644 (file)
@@ -40,7 +40,7 @@ int dram_init_banksize(void)
        return 0;
 }
 
-int mtk_pll_early_init(void)
+static int mtk_pll_early_init(void)
 {
        unsigned long pll_rates[] = {
                [CLK_APMIXED_ARMPLL] =   1300000000,