static void
 isdn_tty_change_speed(modem_info *info)
 {
+       struct tty_port *port = &info->port;
        uint cflag,
                cval,
                quot;
        int i;
 
-       if (!info->port.tty || !info->port.tty->termios)
+       if (!port->tty || !port->tty->termios)
                return;
-       cflag = info->port.tty->termios->c_cflag;
+       cflag = port->tty->termios->c_cflag;
 
        quot = i = cflag & CBAUD;
        if (i & CBAUDEX) {
                i &= ~CBAUDEX;
                if (i < 1 || i > 2)
-                       info->port.tty->termios->c_cflag &= ~CBAUDEX;
+                       port->tty->termios->c_cflag &= ~CBAUDEX;
                else
                        i += 15;
        }
 
        /* CTS flow control flag and modem status interrupts */
        if (cflag & CRTSCTS) {
-               info->port.flags |= ASYNC_CTS_FLOW;
+               port->flags |= ASYNC_CTS_FLOW;
        } else
-               info->port.flags &= ~ASYNC_CTS_FLOW;
+               port->flags &= ~ASYNC_CTS_FLOW;
        if (cflag & CLOCAL)
-               info->port.flags &= ~ASYNC_CHECK_CD;
+               port->flags &= ~ASYNC_CHECK_CD;
        else {
-               info->port.flags |= ASYNC_CHECK_CD;
+               port->flags |= ASYNC_CHECK_CD;
        }
 }
 
 static int
 isdn_tty_block_til_ready(struct tty_struct *tty, struct file *filp, modem_info *info)
 {
+       struct tty_port *port = &info->port;
        DECLARE_WAITQUEUE(wait, NULL);
        int do_clocal = 0;
        int retval;
         * until it's done, and then try again.
         */
        if (tty_hung_up_p(filp) ||
-           (info->port.flags & ASYNC_CLOSING)) {
-               if (info->port.flags & ASYNC_CLOSING)
-                       interruptible_sleep_on(&info->port.close_wait);
+           (port->flags & ASYNC_CLOSING)) {
+               if (port->flags & ASYNC_CLOSING)
+                       interruptible_sleep_on(&port->close_wait);
 #ifdef MODEM_DO_RESTART
-               if (info->port.flags & ASYNC_HUP_NOTIFY)
+               if (port->flags & ASYNC_HUP_NOTIFY)
                        return -EAGAIN;
                else
                        return -ERESTARTSYS;
         */
        if ((filp->f_flags & O_NONBLOCK) ||
            (tty->flags & (1 << TTY_IO_ERROR))) {
-               info->port.flags |= ASYNC_NORMAL_ACTIVE;
+               port->flags |= ASYNC_NORMAL_ACTIVE;
                return 0;
        }
        if (tty->termios->c_cflag & CLOCAL)
         * exit, either normal or abnormal.
         */
        retval = 0;
-       add_wait_queue(&info->port.open_wait, &wait);
+       add_wait_queue(&port->open_wait, &wait);
 #ifdef ISDN_DEBUG_MODEM_OPEN
        printk(KERN_DEBUG "isdn_tty_block_til_ready before block: ttyi%d, count = %d\n",
               info->line, info->count);
 #endif
        if (!(tty_hung_up_p(filp)))
-               info->port.count--;
-       info->port.blocked_open++;
+               port->count--;
+       port->blocked_open++;
        while (1) {
                set_current_state(TASK_INTERRUPTIBLE);
                if (tty_hung_up_p(filp) ||
-                   !(info->port.flags & ASYNC_INITIALIZED)) {
+                   !(port->flags & ASYNC_INITIALIZED)) {
 #ifdef MODEM_DO_RESTART
-                       if (info->port.flags & ASYNC_HUP_NOTIFY)
+                       if (port->flags & ASYNC_HUP_NOTIFY)
                                retval = -EAGAIN;
                        else
                                retval = -ERESTARTSYS;
 #endif
                        break;
                }
-               if (!(info->port.flags & ASYNC_CLOSING) &&
+               if (!(port->flags & ASYNC_CLOSING) &&
                    (do_clocal || (info->msr & UART_MSR_DCD))) {
                        break;
                }
                }
 #ifdef ISDN_DEBUG_MODEM_OPEN
                printk(KERN_DEBUG "isdn_tty_block_til_ready blocking: ttyi%d, count = %d\n",
-                      info->line, info->port.count);
+                      info->line, port->count);
 #endif
                schedule();
        }
        current->state = TASK_RUNNING;
-       remove_wait_queue(&info->port.open_wait, &wait);
+       remove_wait_queue(&port->open_wait, &wait);
        if (!tty_hung_up_p(filp))
-               info->port.count++;
-       info->port.blocked_open--;
+               port->count++;
+       port->blocked_open--;
 #ifdef ISDN_DEBUG_MODEM_OPEN
        printk(KERN_DEBUG "isdn_tty_block_til_ready after blocking: ttyi%d, count = %d\n",
-              info->line, info->port.count);
+              info->line, port->count);
 #endif
        if (retval)
                return retval;
-       info->port.flags |= ASYNC_NORMAL_ACTIVE;
+       port->flags |= ASYNC_NORMAL_ACTIVE;
        return 0;
 }
 
 static int
 isdn_tty_open(struct tty_struct *tty, struct file *filp)
 {
+       struct tty_port *port;
        modem_info *info;
        int retval;
 
        info = &dev->mdm.info[tty->index];
        if (isdn_tty_paranoia_check(info, tty->name, "isdn_tty_open"))
                return -ENODEV;
+       port = &info->port;
 #ifdef ISDN_DEBUG_MODEM_OPEN
        printk(KERN_DEBUG "isdn_tty_open %s, count = %d\n", tty->name,
-              info->port.count);
+              port->count);
 #endif
-       info->port.count++;
+       port->count++;
        tty->driver_data = info;
-       info->port.tty = tty;
-       tty->port = &info->port;
+       port->tty = tty;
+       tty->port = port;
        /*
         * Start up serial port
         */
 isdn_tty_close(struct tty_struct *tty, struct file *filp)
 {
        modem_info *info = (modem_info *) tty->driver_data;
+       struct tty_port *port = &info->port;
        ulong timeout;
 
        if (!info || isdn_tty_paranoia_check(info, tty->name, "isdn_tty_close"))
 #endif
                return;
        }
-       if ((tty->count == 1) && (info->port.count != 1)) {
+       if ((tty->count == 1) && (port->count != 1)) {
                /*
                 * Uh, oh.  tty->count is 1, which means that the tty
                 * structure will be freed.  Info->count should always
                 * serial port won't be shutdown.
                 */
                printk(KERN_ERR "isdn_tty_close: bad port count; tty->count is 1, "
-                      "info->count is %d\n", info->port.count);
-               info->port.count = 1;
+                      "info->count is %d\n", port->count);
+               port->count = 1;
        }
-       if (--info->port.count < 0) {
+       if (--port->count < 0) {
                printk(KERN_ERR "isdn_tty_close: bad port count for ttyi%d: %d\n",
-                      info->line, info->port.count);
-               info->port.count = 0;
+                      info->line, port->count);
+               port->count = 0;
        }
-       if (info->port.count) {
+       if (port->count) {
 #ifdef ISDN_DEBUG_MODEM_OPEN
                printk(KERN_DEBUG "isdn_tty_close after info->count != 0\n");
 #endif
                return;
        }
-       info->port.flags |= ASYNC_CLOSING;
+       port->flags |= ASYNC_CLOSING;
 
        tty->closing = 1;
        /*
         * interrupt driver to stop checking the data ready bit in the
         * line status register.
         */
-       if (info->port.flags & ASYNC_INITIALIZED) {
+       if (port->flags & ASYNC_INITIALIZED) {
                tty_wait_until_sent_from_close(tty, 3000);      /* 30 seconds timeout */
                /*
                 * Before we drop DTR, make sure the UART transmitter
        isdn_tty_shutdown(info);
        isdn_tty_flush_buffer(tty);
        tty_ldisc_flush(tty);
-       info->port.tty = NULL;
+       port->tty = NULL;
        info->ncarrier = 0;
        tty->closing = 0;
-       if (info->port.blocked_open) {
+       if (port->blocked_open) {
                msleep_interruptible(500);
-               wake_up_interruptible(&info->port.open_wait);
+               wake_up_interruptible(&port->open_wait);
        }
-       info->port.flags &= ~(ASYNC_NORMAL_ACTIVE | ASYNC_CLOSING);
-       wake_up_interruptible(&info->port.close_wait);
+       port->flags &= ~(ASYNC_NORMAL_ACTIVE | ASYNC_CLOSING);
+       wake_up_interruptible(&port->close_wait);
 #ifdef ISDN_DEBUG_MODEM_OPEN
        printk(KERN_DEBUG "isdn_tty_close normal exit\n");
 #endif
 isdn_tty_hangup(struct tty_struct *tty)
 {
        modem_info *info = (modem_info *) tty->driver_data;
+       struct tty_port *port = &info->port;
 
        if (isdn_tty_paranoia_check(info, tty->name, "isdn_tty_hangup"))
                return;
        isdn_tty_shutdown(info);
-       info->port.count = 0;
-       info->port.flags &= ~ASYNC_NORMAL_ACTIVE;
-       info->port.tty = NULL;
-       wake_up_interruptible(&info->port.open_wait);
+       port->count = 0;
+       port->flags &= ~ASYNC_NORMAL_ACTIVE;
+       port->tty = NULL;
+       wake_up_interruptible(&port->open_wait);
 }
 
 /* This routine initializes all emulator-data.