Skip to content

Commit

Permalink
serial: 8250: Let serial core initialise spin lock
Browse files Browse the repository at this point in the history
Since the serial core handles spin lock initialisation,
let the driver rely on it.

Depends-on: f743061 ("serial: core: Initialise spin lock before use in uart_configure_port()")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200731123733.22754-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Andy Shevchenko authored and Greg Kroah-Hartman committed Jul 31, 2020
1 parent f3af1b6 commit 679193b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/tty/serial/8250/8250_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -3194,7 +3194,6 @@ void serial8250_init_port(struct uart_8250_port *up)
{
struct uart_port *port = &up->port;

spin_lock_init(&port->lock);
port->ops = &serial8250_pops;
port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_8250_CONSOLE);

Expand Down

0 comments on commit 679193b

Please sign in to comment.