diff options
author | Alan Cox <alan@redhat.com> | 2008-10-13 05:42:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-13 12:51:42 -0400 |
commit | 7d7b93c1452f381350dbaf276a63357fa6559e6d (patch) | |
tree | 02ce0c37e7fea66d1e8af20111d92171bfc0ff1d /drivers/char/pty.c | |
parent | 99f1fe189daf8e99a847e420567e49dd7ee2aae7 (diff) |
tty: kref the tty driver object
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/pty.c')
-rw-r--r-- | drivers/char/pty.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/char/pty.c b/drivers/char/pty.c index 6e148ade735..0fdfa051714 100644 --- a/drivers/char/pty.c +++ b/drivers/char/pty.c | |||
@@ -571,8 +571,11 @@ static void __init unix98_pty_init(void) | |||
571 | if (tty_register_driver(pts_driver)) | 571 | if (tty_register_driver(pts_driver)) |
572 | panic("Couldn't register Unix98 pts driver"); | 572 | panic("Couldn't register Unix98 pts driver"); |
573 | 573 | ||
574 | /* FIXME: WTF */ | ||
575 | #if 0 | ||
574 | pty_table[1].data = &ptm_driver->refcount; | 576 | pty_table[1].data = &ptm_driver->refcount; |
575 | register_sysctl_table(pty_root_table); | 577 | #endif |
578 | register_sysctl_table(pty_root_table); | ||
576 | 579 | ||
577 | /* Now create the /dev/ptmx special device */ | 580 | /* Now create the /dev/ptmx special device */ |
578 | tty_default_fops(&ptmx_fops); | 581 | tty_default_fops(&ptmx_fops); |