From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Sat, 6 Feb 2021 16:21:54 +0100 Subject: [RESEND PATCH 13/16] arm: omap3: Compile s_init() function only when it is used In-Reply-To: <20210205191212.7644-14-pali@kernel.org> References: <20210205191212.7644-1-pali@kernel.org> <20210205191212.7644-14-pali@kernel.org> Message-ID: <20210206162154.62f278d2@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 5 Feb 2021 20:12:09 +0100 Pali Roh?r wrote: > Function s_init() is called only from lowlevel_init(). So compile it > only when function lowlevel_init() is compiled. > Reviewed-by: Lukasz Majewski > Signed-off-by: Pali Roh?r > --- > arch/arm/mach-omap2/omap3/board.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/mach-omap2/omap3/board.c > b/arch/arm/mach-omap2/omap3/board.c index 4da8df47cc..029bd54595 > 100644 --- a/arch/arm/mach-omap2/omap3/board.c > +++ b/arch/arm/mach-omap2/omap3/board.c > @@ -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) Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: