mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
serial: pch: Don't initialize uart_port's spin_lock.
There is no need to directly initialize the spinlock_t in struct uart_port. The structure is later passed to uart_add_one_port() which initialize the complete struct including the lock member. Remove spin_lock_init() on uart_port's internal lock. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Link: https://lore.kernel.org/r/20240301215246.891055-17-bigeasy@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f8ff23ebce
commit
38f3fc2e82
1 changed files with 0 additions and 2 deletions
|
@ -1725,8 +1725,6 @@ static struct eg20t_port *pch_uart_init_port(struct pci_dev *pdev,
|
||||||
KBUILD_MODNAME ":" PCH_UART_DRIVER_DEVICE "%d",
|
KBUILD_MODNAME ":" PCH_UART_DRIVER_DEVICE "%d",
|
||||||
priv->port.line);
|
priv->port.line);
|
||||||
|
|
||||||
spin_lock_init(&priv->port.lock);
|
|
||||||
|
|
||||||
pci_set_drvdata(pdev, priv);
|
pci_set_drvdata(pdev, priv);
|
||||||
priv->trigger_level = 1;
|
priv->trigger_level = 1;
|
||||||
priv->fcr = 0;
|
priv->fcr = 0;
|
||||||
|
|
Loading…
Reference in a new issue