tty: riscom8, fix shutdown declaration
authorJiri Slaby <jirislaby@gmail.com>
Sat, 22 Aug 2009 07:04:42 +0000 (09:04 +0200)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:37 +0000 (13:13 -0700)
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>
drivers/char/riscom8.c

index 7b5623b01903a9a8d764b6d62661c3eafbecde3b..3c7cf2cf3ea25db93bfe604e0940dfabef11c7d2 100644 (file)
@@ -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);
@@ -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);
 }