Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155567
b: refs/heads/master
c: c46a7ae
h: refs/heads/master
i:
  155565: 4a15b7e
  155563: 68b6164
  155559: 345650c
  155551: 9f33dbc
v: v3
  • Loading branch information
Kay Sievers authored and Linus Torvalds committed Jul 20, 2009
1 parent 505a768 commit 4461cda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7571a5c8887b328c0e036fe8cdb60d56809c120
refs/heads/master: c46a7aec556ffdbdb7357db0b05904b176cb3375
4 changes: 4 additions & 0 deletions trunk/drivers/char/vc_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,11 +495,15 @@ void vcs_remove_sysfs(int index)

int __init vcs_init(void)
{
unsigned int i;

if (register_chrdev(VCS_MAJOR, "vcs", &vcs_fops))
panic("unable to get major %d for vcs device", VCS_MAJOR);
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, 128), NULL, "vcsa");
for (i = 0; i < MIN_NR_CONSOLES; i++)
vcs_make_sysfs(i);
return 0;
}

0 comments on commit 4461cda

Please sign in to comment.