X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/f044ca812256b421e793c4335ce1ffed74710a70..6f6da1abb22dff69dbb710bd2fd9d95f083f2b43:/lunaix-os/kernel/tty/lxconsole.c diff --git a/lunaix-os/kernel/tty/lxconsole.c b/lunaix-os/kernel/tty/lxconsole.c index 0bcb9b7..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; @@ -357,6 +358,7 @@ lxconsole_spawn_ttydev(struct device_def* devdef) } static struct device_def lxconsole_def = { + .name = "Lunaix Virtual Console", .class = DEVCLASS(DEVIF_NON, DEVFN_TTY, DEV_BUILTIN, 0), .init = lxconsole_spawn_ttydev };