From: Massimo Pegorer <massimo.pegorer@gmail.com>
Date: Wed, 2 Aug 2023 17:05:23 +0000 (+0200)
Subject: rockchip: spl: Drop useless call to debug_uart_init
X-Git-Tag: v2025.01-rc5-pxa1908~887^2~6
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/%7B%7B?a=commitdiff_plain;h=08e74ac3d9c20d29e38c1ec6e50688f978975097;p=u-boot.git

rockchip: spl: Drop useless call to debug_uart_init

Since commit 0dba45864b2a ("arm: Init the debug UART") function
debug_uart_init is called in crt files _main before calling
board_init_f. Therefore, there is no need to call it again
inside board_init_f implementation in arm/mach-rockchip/spl.c.

Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
---

diff --git a/arch/arm/mach-rockchip/spl.c b/arch/arm/mach-rockchip/spl.c
index 30be640425..a6396b3c42 100644
--- a/arch/arm/mach-rockchip/spl.c
+++ b/arch/arm/mach-rockchip/spl.c
@@ -116,12 +116,10 @@ void board_init_f(ulong dummy)
 	/*
 	 * Debug UART can be used from here if required:
 	 *
-	 * debug_uart_init();
 	 * printch('a');
 	 * printhex8(0x1234);
 	 * printascii("string");
 	 */
-	debug_uart_init();
 	debug("\nspl:debug uart enabled in %s\n", __func__);
 #endif