Skip to content
Snippets Groups Projects
Commit 80dc9997 authored by Michal Simek's avatar Michal Simek Committed by Tom Rini
Browse files

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: default avatarThomas Chou <thomas@wytron.com.tw>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarThomas Chou <thomas@wytron.com.tw>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 821fec0c
No related branches found
No related tags found
No related merge requests found
...@@ -192,7 +192,7 @@ U_BOOT_DRIVER(serial_zynq) = { ...@@ -192,7 +192,7 @@ U_BOOT_DRIVER(serial_zynq) = {
}; };
#ifdef CONFIG_DEBUG_UART_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; struct uart_zynq *regs = (struct uart_zynq *)CONFIG_DEBUG_UART_BASE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment