diff options
Diffstat (limited to 'drivers/char/sh-sci.c')
| -rw-r--r-- | drivers/char/sh-sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/sh-sci.c b/drivers/char/sh-sci.c index 1cfe4c4cde95..4da69ac114ce 100644 --- a/drivers/char/sh-sci.c +++ b/drivers/char/sh-sci.c @@ -812,7 +812,7 @@ static int sci_open(struct tty_struct * tty, struct file * filp) struct sci_port *port; int retval, line; - line = minor(tty->device) - SCI_MINOR_START; + line = tty->index; if ((line < 0) || (line >= SCI_NPORTS)) return -ENODEV; |
