X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fchar%2Fpty.c;h=9b5a2c0e7008c82183649e6006784088ceabd220;hb=ce362c009250340358a7221f3cdb7954cbf19c01;hp=49f3997fd251d95cfaec443d98f5a15037f52c68;hpb=32983696a48a6c41d99f3eca82ba7510a552d843;p=powerpc.git diff --git a/drivers/char/pty.c b/drivers/char/pty.c index 49f3997fd2..9b5a2c0e70 100644 --- a/drivers/char/pty.c +++ b/drivers/char/pty.c @@ -111,7 +111,7 @@ static int pty_write(struct tty_struct * tty, const unsigned char *buf, int coun if (!to || tty->stopped) return 0; - c = to->ldisc.receive_room(to); + c = to->receive_room; if (c > count) c = count; to->ldisc.receive_buf(to, buf, NULL, c); @@ -126,7 +126,7 @@ static int pty_write_room(struct tty_struct *tty) if (!to || tty->stopped) return 0; - return to->ldisc.receive_room(to); + return to->receive_room; } /*