diff options
| -rw-r--r-- | drivers/char/vc_screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c index d94d25c12aa8..c1791a63d99d 100644 --- a/drivers/char/vc_screen.c +++ b/drivers/char/vc_screen.c | |||
| @@ -495,11 +495,15 @@ void vcs_remove_sysfs(int index) | |||
| 495 | 495 | ||
| 496 | int __init vcs_init(void) | 496 | int __init vcs_init(void) |
| 497 | { | 497 | { |
| 498 | unsigned int i; | ||
| 499 | |||
| 498 | if (register_chrdev(VCS_MAJOR, "vcs", &vcs_fops)) | 500 | if (register_chrdev(VCS_MAJOR, "vcs", &vcs_fops)) |
| 499 | panic("unable to get major %d for vcs device", VCS_MAJOR); | 501 | panic("unable to get major %d for vcs device", VCS_MAJOR); |
| 500 | vc_class = class_create(THIS_MODULE, "vc"); | 502 | vc_class = class_create(THIS_MODULE, "vc"); |
| 501 | 503 | ||
| 502 | device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs"); | 504 | device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs"); |
| 503 | device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa"); | 505 | device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa"); |
| 506 | for (i = 0; i < MIN_NR_CONSOLES; i++) | ||
| 507 | vcs_make_sysfs(i); | ||
| 504 | return 0; | 508 | return 0; |
| 505 | } | 509 | } |
