serial: liteuart: remove unused uart_ops stubs
Remove stub uart_ops methods that are not called unconditionally from serial_core. Signed-off-by: Gabriel Somlo <gsomlo@gmail.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20221123130500.1030189-4-gsomlo@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5996b2e338
commit
380596228d
@ -154,11 +154,6 @@ static void liteuart_stop_rx(struct uart_port *port)
|
||||
del_timer(&uart->timer);
|
||||
}
|
||||
|
||||
static void liteuart_break_ctl(struct uart_port *port, int break_state)
|
||||
{
|
||||
/* LiteUART doesn't support sending break signal */
|
||||
}
|
||||
|
||||
static int liteuart_startup(struct uart_port *port)
|
||||
{
|
||||
struct liteuart_port *uart = to_liteuart_port(port);
|
||||
@ -197,15 +192,6 @@ static const char *liteuart_type(struct uart_port *port)
|
||||
return "liteuart";
|
||||
}
|
||||
|
||||
static void liteuart_release_port(struct uart_port *port)
|
||||
{
|
||||
}
|
||||
|
||||
static int liteuart_request_port(struct uart_port *port)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void liteuart_config_port(struct uart_port *port, int flags)
|
||||
{
|
||||
/*
|
||||
@ -232,13 +218,10 @@ static const struct uart_ops liteuart_ops = {
|
||||
.stop_tx = liteuart_stop_tx,
|
||||
.start_tx = liteuart_start_tx,
|
||||
.stop_rx = liteuart_stop_rx,
|
||||
.break_ctl = liteuart_break_ctl,
|
||||
.startup = liteuart_startup,
|
||||
.shutdown = liteuart_shutdown,
|
||||
.set_termios = liteuart_set_termios,
|
||||
.type = liteuart_type,
|
||||
.release_port = liteuart_release_port,
|
||||
.request_port = liteuart_request_port,
|
||||
.config_port = liteuart_config_port,
|
||||
.verify_port = liteuart_verify_port,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user