tty: make tty_class a static const structure
[platform/kernel/linux-starfive.git] / drivers / tty / vt / vt.c
index 81c1480..40e4928 100644 (file)
@@ -3539,7 +3539,7 @@ int __init vty_init(const struct file_operations *console_fops)
        if (cdev_add(&vc0_cdev, MKDEV(TTY_MAJOR, 0), 1) ||
            register_chrdev_region(MKDEV(TTY_MAJOR, 0), 1, "/dev/vc/0") < 0)
                panic("Couldn't register /dev/tty0 driver\n");
-       tty0dev = device_create_with_groups(tty_class, NULL,
+       tty0dev = device_create_with_groups(&tty_class, NULL,
                                            MKDEV(TTY_MAJOR, 0), NULL,
                                            vt_dev_groups, "tty0");
        if (IS_ERR(tty0dev))