console.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) console.c (61dfa797c731754642d1ac500a6ac42f9b47f920)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * USB Serial Console driver
4 *
5 * Copyright (C) 2001 - 2002 Greg Kroah-Hartman (greg@kroah.com)
6 *
7 * Thanks to Randy Dunlap for the original version of this code.
8 *

--- 175 unchanged lines hidden (view full) ---

184 fail:
185 tty_port_tty_set(&port->port, NULL);
186 tty_kref_put(tty);
187 reset_open_count:
188 port->port.count = 0;
189 info->port = NULL;
190 usb_autopm_put_interface(serial->interface);
191 error_get_interface:
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * USB Serial Console driver
4 *
5 * Copyright (C) 2001 - 2002 Greg Kroah-Hartman (greg@kroah.com)
6 *
7 * Thanks to Randy Dunlap for the original version of this code.
8 *

--- 175 unchanged lines hidden (view full) ---

184 fail:
185 tty_port_tty_set(&port->port, NULL);
186 tty_kref_put(tty);
187 reset_open_count:
188 port->port.count = 0;
189 info->port = NULL;
190 usb_autopm_put_interface(serial->interface);
191 error_get_interface:
192 usb_serial_put(serial);
193 mutex_unlock(&serial->disc_mutex);
192 mutex_unlock(&serial->disc_mutex);
193 usb_serial_put(serial);
194 return retval;
195}
196
197static void usb_console_write(struct console *co,
198 const char *buf, unsigned count)
199{
200 static struct usbcons_info *info = &usbcons_info;
201 struct usb_serial_port *port = info->port;

--- 103 unchanged lines hidden ---
194 return retval;
195}
196
197static void usb_console_write(struct console *co,
198 const char *buf, unsigned count)
199{
200 static struct usbcons_info *info = &usbcons_info;
201 struct usb_serial_port *port = info->port;

--- 103 unchanged lines hidden ---