]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: omap3: Compile s_init() function only when it is used
authorPali Rohár <pali@kernel.org>
Sun, 7 Feb 2021 13:50:13 +0000 (14:50 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 3 Mar 2021 03:12:46 +0000 (04:12 +0100)
Function s_init() is called only from lowlevel_init(). So compile it only
when function lowlevel_init() is compiled.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
arch/arm/mach-omap2/omap3/board.c

index 4da8df47cc69bc4f0d941ff8a07023312a00862d..029bd545957a166b94694ad5c78673a7103bcd72 100644 (file)
@@ -179,6 +179,8 @@ void early_system_init(void)
        hw_data_init();
 }
 
+#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) && \
+       !defined(CONFIG_SKIP_LOWLEVEL_INIT_ONLY)
 /******************************************************************************
  * Routine: s_init
  * Description: Does early system init of muxing and clocks.
@@ -207,6 +209,7 @@ void s_init(void)
        ehci_clocks_enable();
 #endif
 }
+#endif
 
 #ifdef CONFIG_SPL_BUILD
 void board_init_f(ulong dummy)