usb-serial: Use tty_port version console instead of usb_serial_port
Replace all instances of using the console variable in struct usb_serial_port with the struct tty_port version. CC: Alan Cox <alan@linux.intel.com> CC: Alan Stern <stern@rowland.harvard.edu> CC: Oliver Neukum <oliver@neukum.org> CC: Andrew Morton <akpm@linux-foundation.org> CC: linux-usb@vger.kernel.org CC: linux-kernel@vger.kernel.org Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
9757de3844
commit
bd5afa9eac
@@ -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);
|
||||
|
Reference in New Issue
Block a user