serial: 8250: fix 8250_dwlib.c gki error

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I49c2797bd0c9ac4d7461910555a4a371d407cbd2
This commit is contained in:
Steven Liu
2021-07-28 11:45:56 +08:00
parent 8d1c43f7b4
commit dcc20720d0
2 changed files with 6 additions and 0 deletions

View File

@@ -29,7 +29,11 @@
#include <asm/byteorder.h>
#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 */

View File

@@ -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