mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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:
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user