From: Michal Simek Date: Tue, 5 Jan 2016 11:49:21 +0000 (+0100) Subject: serial: zynq: Use static inline for _debug_uart_init() X-Git-Tag: v2016.01~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80dc99972bd016af559f76e5b51a421f7ae2216e;p=platform%2Fkernel%2Fu-boot.git 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 --- diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index b2b98de..3430482 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;