|
@@ -180,7 +180,6 @@ static int usb_console_setup(struct console *co, char *options)
|
|
|
--port->port.count;
|
|
|
/* The console is special in terms of closing the device so
|
|
|
* indicate this port is now acting as a system console. */
|
|
|
- port->console = 1;
|
|
|
port->port.console = 1;
|
|
|
|
|
|
mutex_unlock(&serial->disc_mutex);
|
|
@@ -217,7 +216,7 @@ static void usb_console_write(struct console *co,
|
|
|
|
|
|
dbg("%s - port %d, %d byte(s)", __func__, port->number, count);
|
|
|
|
|
|
- if (!port->console) {
|
|
|
+ if (!port->port.console) {
|
|
|
dbg("%s - port not opened", __func__);
|
|
|
return;
|
|
|
}
|
|
@@ -313,7 +312,7 @@ void usb_serial_console_exit(void)
|
|
|
{
|
|
|
if (usbcons_info.port) {
|
|
|
unregister_console(&usbcons);
|
|
|
- usbcons_info.port->console = 0;
|
|
|
+ usbcons_info.port->port.console = 0;
|
|
|
usbcons_info.port = NULL;
|
|
|
}
|
|
|
}
|