summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorTomoya MORINAGA <tomoya-linux@dsn.okisemi.com>2011-02-23 02:03:13 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-23 02:22:03 +0100
commit7e4613296576c843643ceb97091d98da1e8caab8 (patch)
tree5ee9798377c479aefd124c64957194e36947f13a /drivers/tty
parentpch_uart: add multi-scatter processing (diff)
downloadlinux-7e4613296576c843643ceb97091d98da1e8caab8.tar.xz
linux-7e4613296576c843643ceb97091d98da1e8caab8.zip
pch_uart: add spin_lock_init
Currently, spin_lock is not initialized. Thus, add spin_lock_init(). Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/pch_uart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c
index c1386eb255d3..9e1b8652de7f 100644
--- a/drivers/tty/serial/pch_uart.c
+++ b/drivers/tty/serial/pch_uart.c
@@ -1370,6 +1370,8 @@ static struct eg20t_port *pch_uart_init_port(struct pci_dev *pdev,
priv->port.line = num++;
priv->trigger = PCH_UART_HAL_TRIGGER_M;
+ spin_lock_init(&priv->port.lock);
+
pci_set_drvdata(pdev, priv);
pch_uart_hal_request(pdev, fifosize, base_baud);