diff options
Diffstat (limited to 'drivers/tc/zs.c')
| -rw-r--r-- | drivers/tc/zs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tc/zs.c b/drivers/tc/zs.c index ad814df91191..dfc46477eb5d 100644 --- a/drivers/tc/zs.c +++ b/drivers/tc/zs.c @@ -1639,7 +1639,7 @@ int rs_open(struct tty_struct *tty, struct file * filp) struct dec_serial *info; int retval, line; - line = minor(tty->device) - tty->driver->minor_start; + line = tty->index; if ((line < 0) || (line >= zs_channels_found)) return -ENODEV; info = zs_soft + line; |
