aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/mux.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/mux.c')
-rw-r--r--drivers/tty/serial/mux.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/tty/serial/mux.c b/drivers/tty/serial/mux.c
index dd26511ad875..8a4be4b73723 100644
--- a/drivers/tty/serial/mux.c
+++ b/drivers/tty/serial/mux.c
@@ -412,19 +412,14 @@ static int mux_console_setup(struct console *co, char *options)
412 return 0; 412 return 0;
413} 413}
414 414
415struct tty_driver *mux_console_device(struct console *co, int *index)
416{
417 *index = co->index;
418 return mux_driver.tty_driver;
419}
420
421static struct console mux_console = { 415static struct console mux_console = {
422 .name = "ttyB", 416 .name = "ttyB",
423 .write = mux_console_write, 417 .write = mux_console_write,
424 .device = mux_console_device, 418 .device = uart_console_device,
425 .setup = mux_console_setup, 419 .setup = mux_console_setup,
426 .flags = CON_ENABLED | CON_PRINTBUFFER, 420 .flags = CON_ENABLED | CON_PRINTBUFFER,
427 .index = 0, 421 .index = 0,
422 .data = &mux_driver,
428}; 423};
429 424
430#define MUX_CONSOLE &mux_console 425#define MUX_CONSOLE &mux_console