X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/8fce4520de1f257819b16f9253fa28dcdae743f4..6f6da1abb22dff69dbb710bd2fd9d95f083f2b43:/lunaix-os/kernel/tty/lxconsole.c diff --git a/lunaix-os/kernel/tty/lxconsole.c b/lunaix-os/kernel/tty/lxconsole.c index 46f4dd2..17dddfd 100644 --- a/lunaix-os/kernel/tty/lxconsole.c +++ b/lunaix-os/kernel/tty/lxconsole.c @@ -343,7 +343,8 @@ console_start_flushing() static int lxconsole_spawn_ttydev(struct device_def* devdef) { - struct device* tty_dev = device_addseq(NULL, &lx_console, "tty"); + struct device* tty_dev = + device_addseq(NULL, &devdef->class, &lx_console, "tty"); tty_dev->ops.write = __tty_write; tty_dev->ops.write_page = __tty_write_pg; tty_dev->ops.read = __tty_read;