提交 cead486f 编写于 作者: B Breno Leitão 提交者: Greg Kroah-Hartman

jsm: removing ch_old_baud field

Currently the field jsm_channel->ch_old_baud is not used, just
assigned in a lot of places but never used. This patches removes
this field.
Signed-off-by: NBreno Leitão <leitao@linux.vnet.ibm.com>
Cc: Scott Kilau <scottk@digi.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 a53568a2
...@@ -215,8 +215,6 @@ struct jsm_channel { ...@@ -215,8 +215,6 @@ struct jsm_channel {
u8 ch_stopc; /* Stop character */ u8 ch_stopc; /* Stop character */
u8 ch_startc; /* Start character */ u8 ch_startc; /* Start character */
u32 ch_old_baud; /* Cache of the current baud */
u32 ch_wopen; /* Waiting for open process cnt */ u32 ch_wopen; /* Waiting for open process cnt */
u8 ch_mostat; /* FEP output modem status */ u8 ch_mostat; /* FEP output modem status */
......
...@@ -954,7 +954,6 @@ static void neo_param(struct jsm_channel *ch) ...@@ -954,7 +954,6 @@ static void neo_param(struct jsm_channel *ch)
ch->ch_flags |= (CH_BAUD0); ch->ch_flags |= (CH_BAUD0);
ch->ch_mostat &= ~(UART_MCR_RTS | UART_MCR_DTR); ch->ch_mostat &= ~(UART_MCR_RTS | UART_MCR_DTR);
neo_assert_modem_signals(ch); neo_assert_modem_signals(ch);
ch->ch_old_baud = 0;
return; return;
} else { } else {
...@@ -1041,7 +1040,6 @@ static void neo_param(struct jsm_channel *ch) ...@@ -1041,7 +1040,6 @@ static void neo_param(struct jsm_channel *ch)
quot = ch->ch_bd->bd_dividend / baud; quot = ch->ch_bd->bd_dividend / baud;
if (quot != 0) { if (quot != 0) {
ch->ch_old_baud = baud;
writeb(UART_LCR_DLAB, &ch->ch_neo_uart->lcr); writeb(UART_LCR_DLAB, &ch->ch_neo_uart->lcr);
writeb((quot & 0xff), &ch->ch_neo_uart->txrx); writeb((quot & 0xff), &ch->ch_neo_uart->txrx);
writeb((quot >> 8), &ch->ch_neo_uart->ier); writeb((quot >> 8), &ch->ch_neo_uart->ier);
......
...@@ -296,8 +296,6 @@ static void jsm_tty_close(struct uart_port *port) ...@@ -296,8 +296,6 @@ static void jsm_tty_close(struct uart_port *port)
bd->bd_ops->assert_modem_signals(channel); bd->bd_ops->assert_modem_signals(channel);
} }
channel->ch_old_baud = 0;
/* Turn off UART interrupts for this port */ /* Turn off UART interrupts for this port */
channel->ch_bd->bd_ops->uart_off(channel); channel->ch_bd->bd_ops->uart_off(channel);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册