summaryrefslogtreecommitdiff
path: root/drivers/tty/mxser.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2021-06-18 08:14:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-18 13:09:58 +0200
commit58a2ddb3aa859c7e5a7beee2c43c80ac2229c1ca (patch)
tree57ffdea7785d8fe26ef01d56e42c1167ac4b23e4 /drivers/tty/mxser.c
parente45583668e0313c422c650d5da11405624cf547c (diff)
mxser: drop constant board::uart_type
board::uart_type is always set to PORT_16550A. So, use this constant in the code instead. And drop the mxser_board member. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210618061516.662-10-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/mxser.c')
-rw-r--r--drivers/tty/mxser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c
index 558bd4140ee1..a6121fea7a55 100644
--- a/drivers/tty/mxser.c
+++ b/drivers/tty/mxser.c
@@ -372,7 +372,6 @@ struct mxser_board {
unsigned long vector_mask;
enum mxser_must_hwid must_hwid;
- int uart_type;
struct mxser_port ports[MXSER_PORTS_PER_BOARD];
};
@@ -2361,7 +2360,7 @@ static int mxser_initbrd(struct mxser_board *brd)
if (brd->must_hwid != MOXA_OTHER_UART)
mxser_enable_must_enchance_mode(info->ioaddr);
- info->type = brd->uart_type;
+ info->type = PORT_16550A;
process_txrx_fifo(info);
@@ -2454,7 +2453,6 @@ static int mxser_probe(struct pci_dev *pdev,
brd->irq = pdev->irq;
brd->must_hwid = mxser_must_get_hwid(brd->ports[0].ioaddr);
- brd->uart_type = PORT_16550A;
brd->vector_mask = 0;
for (i = 0; i < brd->info->nports; i++) {