|
@@ -479,18 +479,18 @@ static const struct file_operations vcs_fops = {
|
|
|
|
|
|
static struct class *vc_class;
|
|
|
|
|
|
-void vcs_make_sysfs(struct tty_struct *tty)
|
|
|
+void vcs_make_sysfs(int index)
|
|
|
{
|
|
|
- device_create(vc_class, NULL, MKDEV(VCS_MAJOR, tty->index + 1), NULL,
|
|
|
- "vcs%u", tty->index + 1);
|
|
|
- device_create(vc_class, NULL, MKDEV(VCS_MAJOR, tty->index + 129), NULL,
|
|
|
- "vcsa%u", tty->index + 1);
|
|
|
+ device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 1), NULL,
|
|
|
+ "vcs%u", index + 1);
|
|
|
+ device_create(vc_class, NULL, MKDEV(VCS_MAJOR, index + 129), NULL,
|
|
|
+ "vcsa%u", index + 1);
|
|
|
}
|
|
|
|
|
|
-void vcs_remove_sysfs(struct tty_struct *tty)
|
|
|
+void vcs_remove_sysfs(int index)
|
|
|
{
|
|
|
- device_destroy(vc_class, MKDEV(VCS_MAJOR, tty->index + 1));
|
|
|
- device_destroy(vc_class, MKDEV(VCS_MAJOR, tty->index + 129));
|
|
|
+ device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 1));
|
|
|
+ device_destroy(vc_class, MKDEV(VCS_MAJOR, index + 129));
|
|
|
}
|
|
|
|
|
|
int __init vcs_init(void)
|