Skip to content

Commit

Permalink
pch_uart: add spin_lock_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomoya MORINAGA authored and Greg Kroah-Hartman committed Feb 23, 2011
1 parent da3564e commit 7e46132
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/tty/serial/pch_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7e46132

Please sign in to comment.