|
@@ -495,11 +495,15 @@ void vcs_remove_sysfs(int index)
|
|
|
|
|
|
int __init vcs_init(void)
|
|
int __init vcs_init(void)
|
|
{
|
|
{
|
|
|
|
+ unsigned int i;
|
|
|
|
+
|
|
if (register_chrdev(VCS_MAJOR, "vcs", &vcs_fops))
|
|
if (register_chrdev(VCS_MAJOR, "vcs", &vcs_fops))
|
|
panic("unable to get major %d for vcs device", VCS_MAJOR);
|
|
panic("unable to get major %d for vcs device", VCS_MAJOR);
|
|
vc_class = class_create(THIS_MODULE, "vc");
|
|
vc_class = class_create(THIS_MODULE, "vc");
|
|
|
|
|
|
device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs");
|
|
device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs");
|
|
device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa");
|
|
device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa");
|
|
|
|
+ for (i = 0; i < MIN_NR_CONSOLES; i++)
|
|
|
|
+ vcs_make_sysfs(i);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|