summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/tty/serial/mux.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/tty/serial/mux.c')
-rw-r--r--kernel/drivers/tty/serial/mux.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/kernel/drivers/tty/serial/mux.c b/kernel/drivers/tty/serial/mux.c
index dd26511ad..8a4be4b73 100644
--- a/kernel/drivers/tty/serial/mux.c
+++ b/kernel/drivers/tty/serial/mux.c
@@ -412,19 +412,14 @@ static int mux_console_setup(struct console *co, char *options)
return 0;
}
-struct tty_driver *mux_console_device(struct console *co, int *index)
-{
- *index = co->index;
- return mux_driver.tty_driver;
-}
-
static struct console mux_console = {
.name = "ttyB",
.write = mux_console_write,
- .device = mux_console_device,
+ .device = uart_console_device,
.setup = mux_console_setup,
.flags = CON_ENABLED | CON_PRINTBUFFER,
.index = 0,
+ .data = &mux_driver,
};
#define MUX_CONSOLE &mux_console