]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/usb/serial/usb-serial.c
usb-serial: Use tty_port version console instead of usb_serial_port
[mv-sheeva.git] / drivers / usb / serial / usb-serial.c
index 3873660d821776cab0d2950633cd17169b728643..f3f65171de38bb93c278b0a779b33c14ca565b7f 100644 (file)
@@ -289,7 +289,7 @@ static void serial_down(struct tty_port *tport)
         * The console is magical.  Do not hang up the console hardware
         * or there will be tears.
         */
-       if (port->console)
+       if (port->port.console)
                return;
        if (drv->close)
                drv->close(port);
@@ -328,7 +328,7 @@ static void serial_cleanup(struct tty_struct *tty)
        /* The console is magical.  Do not hang up the console hardware
         * or there will be tears.
         */
-       if (port->console)
+       if (port->port.console)
                return;
 
        dbg("%s - port %d", __func__, port->number);