提交 71cad055 编写于 作者: P Philippe Langlais 提交者: Greg Kroah-Hartman

serial: fix port type conflict between NS16550A & U6_16550A

Bug seen by Dr. David Alan Gilbert with sparse
Signed-off-by: NPhilippe Langlais <philippe.langlais@stericsson.com>
Cc: stable <stable@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 d86b3001
...@@ -77,8 +77,7 @@ struct serial_struct { ...@@ -77,8 +77,7 @@ struct serial_struct {
#define PORT_16654 11 #define PORT_16654 11
#define PORT_16850 12 #define PORT_16850 12
#define PORT_RSA 13 /* RSA-DV II/S card */ #define PORT_RSA 13 /* RSA-DV II/S card */
#define PORT_U6_16550A 14 #define PORT_MAX 13
#define PORT_MAX 14
#define SERIAL_IO_PORT 0 #define SERIAL_IO_PORT 0
#define SERIAL_IO_HUB6 1 #define SERIAL_IO_HUB6 1
......
...@@ -44,7 +44,8 @@ ...@@ -44,7 +44,8 @@
#define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */ #define PORT_RM9000 16 /* PMC-Sierra RM9xxx internal UART */
#define PORT_OCTEON 17 /* Cavium OCTEON internal UART */ #define PORT_OCTEON 17 /* Cavium OCTEON internal UART */
#define PORT_AR7 18 /* Texas Instruments AR7 internal UART */ #define PORT_AR7 18 /* Texas Instruments AR7 internal UART */
#define PORT_MAX_8250 18 /* max port ID */ #define PORT_U6_16550A 19 /* ST-Ericsson U6xxx internal UART */
#define PORT_MAX_8250 19 /* max port ID */
/* /*
* ARM specific type numbers. These are not currently guaranteed * ARM specific type numbers. These are not currently guaranteed
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册