pch_uart: add spin_lock_init
authorTomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Wed, 23 Feb 2011 01:03:13 +0000 (10:03 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Feb 2011 01:22:03 +0000 (17:22 -0800)
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>
drivers/tty/serial/pch_uart.c

index c1386eb255d3b555434b3157c26add83d9f5b104..9e1b8652de7f53c1710b23426f504a7e52761d6d 100644 (file)
@@ -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);