From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 3 Sep 2015 15:08:55 +0200 Subject: [U-Boot] [PATCH 2/7] arm: mvebu: Do not call board_init_r() from board_init_f() In-Reply-To: <1441285740-23686-1-git-send-email-sr@denx.de> References: <1441285740-23686-1-git-send-email-sr@denx.de> Message-ID: <1441285740-23686-2-git-send-email-sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Instead of calling board_init_r() directly from board_init_f(), just return from board_init_f(). This will make the code continue executing in crt0.S _main(), from which the board_init_r() is called. This patch aligns the MVEBU SPL with the correct SPL design as well as reduces the stack utilisation slightly. Signed-off-by: Stefan Roese Cc: Marek Vasut Cc: Simon Glass Cc: Luka Perkov --- arch/arm/mach-mvebu/spl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index 26ff1a2..e273339 100644 --- a/arch/arm/mach-mvebu/spl.c +++ b/arch/arm/mach-mvebu/spl.c @@ -78,6 +78,4 @@ void board_init_f(ulong dummy) */ return_to_bootrom(); #endif - - board_init_r(NULL, 0); } -- 2.5.1