From 80dc99972bd016af559f76e5b51a421f7ae2216e Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Tue, 5 Jan 2016 12:49:21 +0100 Subject: [PATCH] serial: zynq: Use static inline for _debug_uart_init() Mark _debug_uart_init() as static to avoid sparse warning and inline it to debug_uart_init(). Reported-by: Thomas Chou Signed-off-by: Michal Simek Reviewed-by: Thomas Chou Reviewed-by: Simon Glass Reviewed-by: Bin Meng Acked-by: Simon Glass --- drivers/serial/serial_zynq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index b2b98dea15..3430482f8d 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -192,7 +192,7 @@ U_BOOT_DRIVER(serial_zynq) = { }; #ifdef CONFIG_DEBUG_UART_ZYNQ -void _debug_uart_init(void) +static inline void _debug_uart_init(void) { struct uart_zynq *regs = (struct uart_zynq *)CONFIG_DEBUG_UART_BASE; -- 2.39.5