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>
This commit is contained in:
Jiri Slaby 2021-06-18 08:14:15 +02:00 committed by Greg Kroah-Hartman
parent e45583668e
commit 58a2ddb3aa

View File

@ -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++) {