diff options
Diffstat (limited to 'drivers/serial/8250.c')
-rw-r--r-- | drivers/serial/8250.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index a97f1ae11f7..342e12fb1c2 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c | |||
@@ -1885,7 +1885,7 @@ static int serial8250_startup(struct uart_port *port) | |||
1885 | * the interrupt is enabled. Delays are necessary to | 1885 | * the interrupt is enabled. Delays are necessary to |
1886 | * allow register changes to become visible. | 1886 | * allow register changes to become visible. |
1887 | */ | 1887 | */ |
1888 | spin_lock(&up->port.lock); | 1888 | spin_lock_irqsave(&up->port.lock, flags); |
1889 | if (up->port.flags & UPF_SHARE_IRQ) | 1889 | if (up->port.flags & UPF_SHARE_IRQ) |
1890 | disable_irq_nosync(up->port.irq); | 1890 | disable_irq_nosync(up->port.irq); |
1891 | 1891 | ||
@@ -1901,7 +1901,7 @@ static int serial8250_startup(struct uart_port *port) | |||
1901 | 1901 | ||
1902 | if (up->port.flags & UPF_SHARE_IRQ) | 1902 | if (up->port.flags & UPF_SHARE_IRQ) |
1903 | enable_irq(up->port.irq); | 1903 | enable_irq(up->port.irq); |
1904 | spin_unlock(&up->port.lock); | 1904 | spin_unlock_irqrestore(&up->port.lock, flags); |
1905 | 1905 | ||
1906 | /* | 1906 | /* |
1907 | * If the interrupt is not reasserted, setup a timer to | 1907 | * If the interrupt is not reasserted, setup a timer to |