Skip to content

Commit

Permalink
tty: riscom8, fix shutdown declaration
Browse files Browse the repository at this point in the history
tty_port_ops.shutdown takes only one parameter: tty port. Remove
the second one and use port->tty where needed instead.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jiri Slaby authored and Live-CD User committed Sep 19, 2009
1 parent 1f5c13f commit 90387f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/riscom8.c
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ static void rc_flush_buffer(struct tty_struct *tty)
tty_wakeup(tty);
}

static void rc_close_port(struct tty_port *port, struct tty_struct *tty)
static void rc_close_port(struct tty_port *port)
{
unsigned long flags;
struct riscom_port *rp = container_of(port, struct riscom_port, port);
Expand Down Expand Up @@ -969,7 +969,7 @@ static void rc_close_port(struct tty_port *port, struct tty_struct *tty)
break;
}
}
rc_shutdown_port(tty, bp, rp);
rc_shutdown_port(port->tty, bp, rp);
spin_unlock_irqrestore(&riscom_lock, flags);
}

Expand Down

0 comments on commit 90387f5

Please sign in to comment.