struct uart_state *state = tty->driver_data;
        struct tty_port *port;
        struct uart_port *uport;
-       unsigned long flags;
 
        if (!state) {
                struct uart_driver *drv = tty->driver->driver_state;
         * disable the receive line status interrupts.
         */
        if (port->flags & ASYNC_INITIALIZED) {
-               unsigned long flags;
-               spin_lock_irqsave(&uport->lock, flags);
+               spin_lock_irq(&uport->lock);
                uport->ops->stop_rx(uport);
-               spin_unlock_irqrestore(&uport->lock, flags);
+               spin_unlock_irq(&uport->lock);
                /*
                 * Before we drop DTR, make sure the UART transmitter
                 * has completely drained; this is especially
        uart_shutdown(tty, state);
        tty_port_tty_set(port, NULL);
 
-       spin_lock_irqsave(&port->lock, flags);
+       spin_lock_irq(&port->lock);
 
        if (port->blocked_open) {
-               spin_unlock_irqrestore(&port->lock, flags);
+               spin_unlock_irq(&port->lock);
                if (port->close_delay)
                        msleep_interruptible(jiffies_to_msecs(port->close_delay));
-               spin_lock_irqsave(&port->lock, flags);
+               spin_lock_irq(&port->lock);
        } else if (!uart_console(uport)) {
-               spin_unlock_irqrestore(&port->lock, flags);
+               spin_unlock_irq(&port->lock);
                uart_change_pm(state, UART_PM_STATE_OFF);
-               spin_lock_irqsave(&port->lock, flags);
+               spin_lock_irq(&port->lock);
        }
 
        /*
         */
        clear_bit(ASYNCB_NORMAL_ACTIVE, &port->flags);
        clear_bit(ASYNCB_CLOSING, &port->flags);
-       spin_unlock_irqrestore(&port->lock, flags);
+       spin_unlock_irq(&port->lock);
        wake_up_interruptible(&port->open_wait);
        wake_up_interruptible(&port->close_wait);