Commit 38059622 authored by Gabriel Somlo's avatar Gabriel Somlo Committed by Greg Kroah-Hartman

serial: liteuart: remove unused uart_ops stubs

Remove stub uart_ops methods that are not called unconditionally
from serial_core.
Signed-off-by: default avatarGabriel Somlo <gsomlo@gmail.com>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: default avatarJiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20221123130500.1030189-4-gsomlo@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5996b2e3
...@@ -154,11 +154,6 @@ static void liteuart_stop_rx(struct uart_port *port) ...@@ -154,11 +154,6 @@ static void liteuart_stop_rx(struct uart_port *port)
del_timer(&uart->timer); 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) static int liteuart_startup(struct uart_port *port)
{ {
struct liteuart_port *uart = to_liteuart_port(port); struct liteuart_port *uart = to_liteuart_port(port);
...@@ -197,15 +192,6 @@ static const char *liteuart_type(struct uart_port *port) ...@@ -197,15 +192,6 @@ static const char *liteuart_type(struct uart_port *port)
return "liteuart"; 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) static void liteuart_config_port(struct uart_port *port, int flags)
{ {
/* /*
...@@ -232,13 +218,10 @@ static const struct uart_ops liteuart_ops = { ...@@ -232,13 +218,10 @@ static const struct uart_ops liteuart_ops = {
.stop_tx = liteuart_stop_tx, .stop_tx = liteuart_stop_tx,
.start_tx = liteuart_start_tx, .start_tx = liteuart_start_tx,
.stop_rx = liteuart_stop_rx, .stop_rx = liteuart_stop_rx,
.break_ctl = liteuart_break_ctl,
.startup = liteuart_startup, .startup = liteuart_startup,
.shutdown = liteuart_shutdown, .shutdown = liteuart_shutdown,
.set_termios = liteuart_set_termios, .set_termios = liteuart_set_termios,
.type = liteuart_type, .type = liteuart_type,
.release_port = liteuart_release_port,
.request_port = liteuart_request_port,
.config_port = liteuart_config_port, .config_port = liteuart_config_port,
.verify_port = liteuart_verify_port, .verify_port = liteuart_verify_port,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment