From dcc20720d0d3aa3fc8124e312770fd6839829f78 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Wed, 28 Jul 2021 11:45:56 +0800 Subject: [PATCH] serial: 8250: fix 8250_dwlib.c gki error Signed-off-by: Steven Liu Change-Id: I49c2797bd0c9ac4d7461910555a4a371d407cbd2 --- drivers/tty/serial/8250/8250_dw.c | 4 ++++ drivers/tty/serial/8250/8250_dwlib.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index 7f24617474f0..34b47352a136 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -29,7 +29,11 @@ #include +#ifdef MODULE +#include "8250_dwlib.c" +#else #include "8250_dwlib.h" +#endif /* Offsets for the DesignWare specific registers */ #define DW_UART_USR 0x1f /* UART Status Register */ diff --git a/drivers/tty/serial/8250/8250_dwlib.c b/drivers/tty/serial/8250/8250_dwlib.c index fee4f2933919..a0829e157bff 100644 --- a/drivers/tty/serial/8250/8250_dwlib.c +++ b/drivers/tty/serial/8250/8250_dwlib.c @@ -135,4 +135,6 @@ void dw8250_setup_port(struct uart_port *p) if (reg & DW_UART_CPR_SIR_MODE) up->capabilities |= UART_CAP_IRDA; } +#ifndef MODULE EXPORT_SYMBOL_GPL(dw8250_setup_port); +#endif