diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-03 15:51:48 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-03 15:51:48 -0800 |
| commit | 27266a18dc56611e2f2ec4e8aced0fe221e9b4b8 (patch) | |
| tree | 838a597782ea49356da72298626574e22351522d /drivers/serial/serial_core.c | |
| parent | f3e39e67b9b6ad6a51d13be902e8341f13b93531 (diff) | |
| parent | 9a8ffccf3d282ee749210232465f61e1c48b7a86 (diff) | |
Merge master.kernel.org:/home/rmk/linux-2.6-serial
Diffstat (limited to 'drivers/serial/serial_core.c')
| -rw-r--r-- | drivers/serial/serial_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index 0717abfdae06..95fb4939c675 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c @@ -2237,7 +2237,7 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *port) * If this port is a console, then the spinlock is already * initialised. */ - if (!uart_console(port)) + if (!(uart_console(port) && (port->cons->flags & CON_ENABLED))) spin_lock_init(&port->lock); uart_configure_port(drv, state, port); |
