mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 21:44:06 +08:00
serial: icom: delete empty serial hooks
uart_ops::release_port() and uart_ops::request_port() are not required by the serial layer. So no need to define empty ones. Remove them. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20220421085808.24152-10-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e391e32547
commit
7664b7a16b
@ -1532,15 +1532,6 @@ static const char *icom_type(struct uart_port *port)
|
||||
return "icom";
|
||||
}
|
||||
|
||||
static void icom_release_port(struct uart_port *port)
|
||||
{
|
||||
}
|
||||
|
||||
static int icom_request_port(struct uart_port *port)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void icom_config_port(struct uart_port *port, int flags)
|
||||
{
|
||||
port->type = PORT_ICOM;
|
||||
@ -1559,8 +1550,6 @@ static const struct uart_ops icom_ops = {
|
||||
.shutdown = icom_close,
|
||||
.set_termios = icom_set_termios,
|
||||
.type = icom_type,
|
||||
.release_port = icom_release_port,
|
||||
.request_port = icom_request_port,
|
||||
.config_port = icom_config_port,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user