diff options
Diffstat (limited to 'drivers/char/pty.c')
-rw-r--r-- | drivers/char/pty.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/char/pty.c b/drivers/char/pty.c index 0fdfa0517140..4e6490bda751 100644 --- a/drivers/char/pty.c +++ b/drivers/char/pty.c | |||
@@ -433,8 +433,22 @@ static void pty_shutdown(struct tty_struct *tty) | |||
433 | kfree(tty->termios_locked); | 433 | kfree(tty->termios_locked); |
434 | } | 434 | } |
435 | 435 | ||
436 | /* We have no need to install and remove our tty objects as devpts does all | ||
437 | the work for us */ | ||
438 | |||
439 | static int pty_install(struct tty_driver *driver, struct tty_struct *tty) | ||
440 | { | ||
441 | return 0; | ||
442 | } | ||
443 | |||
444 | static void pty_remove(struct tty_driver *driver, struct tty_struct *tty) | ||
445 | { | ||
446 | } | ||
447 | |||
436 | static const struct tty_operations ptm_unix98_ops = { | 448 | static const struct tty_operations ptm_unix98_ops = { |
437 | .lookup = ptm_unix98_lookup, | 449 | .lookup = ptm_unix98_lookup, |
450 | .install = pty_install, | ||
451 | .remove = pty_remove, | ||
438 | .open = pty_open, | 452 | .open = pty_open, |
439 | .close = pty_close, | 453 | .close = pty_close, |
440 | .write = pty_write, | 454 | .write = pty_write, |
@@ -449,6 +463,8 @@ static const struct tty_operations ptm_unix98_ops = { | |||
449 | 463 | ||
450 | static const struct tty_operations pty_unix98_ops = { | 464 | static const struct tty_operations pty_unix98_ops = { |
451 | .lookup = pts_unix98_lookup, | 465 | .lookup = pts_unix98_lookup, |
466 | .install = pty_install, | ||
467 | .remove = pty_remove, | ||
452 | .open = pty_open, | 468 | .open = pty_open, |
453 | .close = pty_close, | 469 | .close = pty_close, |
454 | .write = pty_write, | 470 | .write = pty_write, |