diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-03-08 22:50:12 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:31 -0400 |
commit | bd5afa9eac6daa408412a31a6c69e87e8bd28c7e (patch) | |
tree | 5f99e4ee9d787d038746c2217f7c1152fad3c453 /drivers/usb/serial/console.c | |
parent | 9757de384451a606af8c722213cb973192cbbd1b (diff) |
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>
Diffstat (limited to 'drivers/usb/serial/console.c')
-rw-r--r-- | drivers/usb/serial/console.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c index f347da2ef00a..4ea64fef6718 100644 --- a/drivers/usb/serial/console.c +++ b/drivers/usb/serial/console.c | |||
@@ -180,7 +180,6 @@ static int usb_console_setup(struct console *co, char *options) | |||
180 | --port->port.count; | 180 | --port->port.count; |
181 | /* The console is special in terms of closing the device so | 181 | /* The console is special in terms of closing the device so |
182 | * indicate this port is now acting as a system console. */ | 182 | * indicate this port is now acting as a system console. */ |
183 | port->console = 1; | ||
184 | port->port.console = 1; | 183 | port->port.console = 1; |
185 | 184 | ||
186 | mutex_unlock(&serial->disc_mutex); | 185 | mutex_unlock(&serial->disc_mutex); |
@@ -217,7 +216,7 @@ static void usb_console_write(struct console *co, | |||
217 | 216 | ||
218 | dbg("%s - port %d, %d byte(s)", __func__, port->number, count); | 217 | dbg("%s - port %d, %d byte(s)", __func__, port->number, count); |
219 | 218 | ||
220 | if (!port->console) { | 219 | if (!port->port.console) { |
221 | dbg("%s - port not opened", __func__); | 220 | dbg("%s - port not opened", __func__); |
222 | return; | 221 | return; |
223 | } | 222 | } |
@@ -313,7 +312,7 @@ void usb_serial_console_exit(void) | |||
313 | { | 312 | { |
314 | if (usbcons_info.port) { | 313 | if (usbcons_info.port) { |
315 | unregister_console(&usbcons); | 314 | unregister_console(&usbcons); |
316 | usbcons_info.port->console = 0; | 315 | usbcons_info.port->port.console = 0; |
317 | usbcons_info.port = NULL; | 316 | usbcons_info.port = NULL; |
318 | } | 317 | } |
319 | } | 318 | } |