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;
}
static struct device_def lxconsole_def = {
+ .name = "Lunaix Virtual Console",
.class = DEVCLASS(DEVIF_NON, DEVFN_TTY, DEV_BUILTIN, 0),
.init = lxconsole_spawn_ttydev
};