X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fchar%2Fpty.c;h=4e6490bda7511eb239e5d97b6230a3faa2cbc3b0;hb=8b0a88d5912ab549d5adac2c8498ecdaae5319a5;hp=0fdfa05171400cf0dd82c1571f99a5f0af34e210;hpb=7d7b93c1452f381350dbaf276a63357fa6559e6d;p=linux-2.6-omap-h63xx.git diff --git a/drivers/char/pty.c b/drivers/char/pty.c index 0fdfa051714..4e6490bda75 100644 --- a/drivers/char/pty.c +++ b/drivers/char/pty.c @@ -433,8 +433,22 @@ static void pty_shutdown(struct tty_struct *tty) kfree(tty->termios_locked); } +/* We have no need to install and remove our tty objects as devpts does all + the work for us */ + +static int pty_install(struct tty_driver *driver, struct tty_struct *tty) +{ + return 0; +} + +static void pty_remove(struct tty_driver *driver, struct tty_struct *tty) +{ +} + static const struct tty_operations ptm_unix98_ops = { .lookup = ptm_unix98_lookup, + .install = pty_install, + .remove = pty_remove, .open = pty_open, .close = pty_close, .write = pty_write, @@ -449,6 +463,8 @@ static const struct tty_operations ptm_unix98_ops = { static const struct tty_operations pty_unix98_ops = { .lookup = pts_unix98_lookup, + .install = pty_install, + .remove = pty_remove, .open = pty_open, .close = pty_close, .write = pty_write,