Skip to content

Commit bfc467d

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
serial: remove redundant tty_port_link_device()
The linking is done implicitly by tty_port_register_device_attr_serdev() few lines below. So drop this explicit tty_port_link_device(). Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d0e8e5b commit bfc467d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/tty/serial/serial_core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3156,7 +3156,6 @@ static int serial_core_add_one_port(struct uart_driver *drv, struct uart_port *u
31563156
if (uport->cons && uport->dev)
31573157
of_console_check(uport->dev->of_node, uport->cons->name, uport->line);
31583158

3159-
tty_port_link_device(port, drv->tty_driver, uport->line);
31603159
uart_configure_port(drv, state, uport);
31613160

31623161
port->console = uart_console(uport);

0 commit comments

Comments
 (0)