[U-Boot] [PATCH v3] serial: zynq: Use static inline for _debug_uart_init()
Michal Simek
michal.simek at xilinx.com
Tue Jan 5 12:49:21 CET 2016
Mark _debug_uart_init() as static to avoid sparse warning and
inline it to debug_uart_init().
Reported-by: Thomas Chou <thomas at wytron.com.tw>
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
Reviewed-by: Thomas Chou <thomas at wytron.com.tw>
Reviewed-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
---
Changes in v3:
- Separate uartlite from this patch
Changes in v2:
- Add tags
- Extend commit message reported by Bin
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 b2b98dea1561..3430482f8d8b 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;
--
1.9.1
More information about the U-Boot
mailing list