Skip to contentSkip to conversation

Char: riscom8, fix shutdown declaration

PATCH New Jiri Slaby 1 participant 1 message Aug 22, 2009 Char and misc drivers

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 Char: 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.

---
 drivers/char/riscom8.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/char/riscom8.c +2 -2
index 7b5623b..3c7cf2c 100644
@@ -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);
 }
 
Signature · 1 line
1.6.3.3