summaryrefslogtreecommitdiff
path: root/drivers/char/rocket.c
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2003-04-23 04:18:59 -0700
committerChristoph Hellwig <hch@lst.de>2003-04-23 04:18:59 -0700
commit345127472f366d63f50fdf29b9dd84e70a084bd7 (patch)
treee1f47d76d696923a8c1d8baa05e75f97748fda56 /drivers/char/rocket.c
parent07462df3687e6a58846911460f4f4833fbe3d587 (diff)
[PATCH] tty cleanups (6/12)
tty->tty_index added; we initialize it with minor(tty->device) - tty->driver->minor_start. Majority of remaining tty->device uses had that form and are switched to use of tty->index.
Diffstat (limited to 'drivers/char/rocket.c')
-rw-r--r--drivers/char/rocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c
index 3c7b2c885e9c..dac4f77d513d 100644
--- a/drivers/char/rocket.c
+++ b/drivers/char/rocket.c
@@ -822,7 +822,7 @@ static int rp_open(struct tty_struct *tty, struct file * filp)
CHANNEL_t *cp;
unsigned long page;
- line = minor(tty->device) - tty->driver->minor_start;
+ line = tty->index;
if ((line < 0) || (line >= MAX_RP_PORTS))
return -ENODEV;
if (!tmp_buf) {