提交 80dc9997 编写于 作者: M Michal Simek 提交者: Tom Rini

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: NThomas Chou <thomas@wytron.com.tw>
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
Reviewed-by: NThomas Chou <thomas@wytron.com.tw>
Reviewed-by: NSimon Glass <sjg@chromium.org>
Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
Acked-by: NSimon Glass <sjg@chromium.org>
上级 821fec0c
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册