diff mbox series

[1/4] rockchip: rk3308: fix board_debug_uart_init

Message ID GV1PR08MB801036B040F257C97C652296E535A@GV1PR08MB8010.eurprd08.prod.outlook.com
State Accepted
Commit aff236f30d51eee12eba86b49877ea643f374cd5
Delegated to: Kever Yang
Headers show
Series rockchip: rk3308: improve support for ROCK Pi S | expand

Commit Message

Pegorer Massimo July 15, 2023, 10:19 a.m. UTC
Definition of function board_debug_uart_init() must be under
CONFIG_DEBUG_UART_BOARD_INIT and not under CONFIG_DEBUG_UART,
as it was: see debug_uart.h. In this way the debug uart can
be used but its board-specific initialization skipped by
configuration, if useless.

Signed-off-by: Massimo Pegorer <massimo.pegorer@vimar.com>
---
 arch/arm/mach-rockchip/rk3308/rk3308.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/arm/mach-rockchip/rk3308/rk3308.c b/arch/arm/mach-rockchip/rk3308/rk3308.c
index dd9109b7c3..5763604dc3 100644
--- a/arch/arm/mach-rockchip/rk3308/rk3308.c
+++ b/arch/arm/mach-rockchip/rk3308/rk3308.c
@@ -174,7 +174,7 @@  int rk_board_init(void)
 	return 0;
 }
 
-#if defined(CONFIG_DEBUG_UART)
+#ifdef CONFIG_DEBUG_UART_BOARD_INIT
 __weak void board_debug_uart_init(void)
 {
 	static struct rk3308_grf * const grf = (void *)GRF_BASE;