From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Andreas_Bie=c3=9fmann?= Date: Sat, 24 Oct 2015 00:46:41 +0200 Subject: [U-Boot] [PATCH] at91: simplify spl board_init_f function In-Reply-To: <1445592238-2129-1-git-send-email-josh.wu@atmel.com> References: <1445592238-2129-1-git-send-email-josh.wu@atmel.com> Message-ID: <562AB8D1.6020702@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 23.10.15 11:23, Josh Wu wrote: > crt0.S do both memset the bss section and call board_init_r for us, so > remove them from board_init_f(). > > Signed-off-by: Josh Wu Reviewed-by: Andreas Bie?mann > --- > > arch/arm/mach-at91/spl_atmel.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/arch/arm/mach-at91/spl_atmel.c b/arch/arm/mach-at91/spl_atmel.c > index 8ac5335..b2fb51d 100644 > --- a/arch/arm/mach-at91/spl_atmel.c > +++ b/arch/arm/mach-at91/spl_atmel.c > @@ -98,9 +98,4 @@ void board_init_f(ulong dummy) > preloader_console_init(); > > mem_init(); > - > - /* Clear the BSS. */ > - memset(__bss_start, 0, __bss_end - __bss_start); > - > - board_init_r(NULL, 0); > } >