Skip to content

Commit 9625734

Browse files
Niklas Casselgregkh
authored andcommitted
serial: etraxfs-uart: remove empty functions
Implementing enable_ms is optional by serial_core. check_modem_status is just an empty local function. Signed-off-by: Niklas Cassel <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Tested-by: Guenter Roeck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 90bb6bd commit 9625734

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/tty/serial/etraxfs-uart.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,6 @@ static void etraxfs_uart_stop_rx(struct uart_port *port)
366366
REG_WR(ser, regi_ser, rw_rec_ctrl, rec_ctrl);
367367
}
368368

369-
static void etraxfs_uart_enable_ms(struct uart_port *port)
370-
{
371-
}
372-
373-
static void check_modem_status(struct uart_cris_port *up)
374-
{
375-
}
376-
377369
static unsigned int etraxfs_uart_tx_empty(struct uart_port *port)
378370
{
379371
struct uart_cris_port *up = (struct uart_cris_port *)port;
@@ -591,7 +583,6 @@ ser_interrupt(int irq, void *dev_id)
591583
receive_chars_no_dma(up);
592584
handled = 1;
593585
}
594-
check_modem_status(up);
595586

596587
if (masked_intr.tr_rdy) {
597588
transmit_chars_no_dma(up);
@@ -855,7 +846,6 @@ static const struct uart_ops etraxfs_uart_pops = {
855846
.start_tx = etraxfs_uart_start_tx,
856847
.send_xchar = etraxfs_uart_send_xchar,
857848
.stop_rx = etraxfs_uart_stop_rx,
858-
.enable_ms = etraxfs_uart_enable_ms,
859849
.break_ctl = etraxfs_uart_break_ctl,
860850
.startup = etraxfs_uart_startup,
861851
.shutdown = etraxfs_uart_shutdown,

0 commit comments

Comments
 (0)