aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/riscom8.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-08-22 09:04:42 +0200
committerLive-CD User <linux@linux.site>2009-09-19 13:13:37 -0700
commit90387f5eb08e50d79ab305dab170b4a437d5802c (patch)
tree6bdf992e843ab6b514a8e1b166684d1773950392 /drivers/char/riscom8.c
parent1f5c13fad4ec5617b610e12205902c06298c096a (diff)
downloadkernel_samsung_smdk4412-90387f5eb08e50d79ab305dab170b4a437d5802c.zip
kernel_samsung_smdk4412-90387f5eb08e50d79ab305dab170b4a437d5802c.tar.gz
kernel_samsung_smdk4412-90387f5eb08e50d79ab305dab170b4a437d5802c.tar.bz2
tty: riscom8, fix shutdown declaration
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>
Diffstat (limited to 'drivers/char/riscom8.c')
-rw-r--r--drivers/char/riscom8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/riscom8.c b/drivers/char/riscom8.c
index 7b5623b..3c7cf2c 100644
--- a/drivers/char/riscom8.c
+++ b/drivers/char/riscom8.c
@@ -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);
}