
From: Thomas Schlichter <thomas.schlichter@web.de>

the patch "serial-03-fixups.patch" introduced following compile error:

  CC [M]  drivers/char/moxa.o
drivers/char/moxa.c: In function `moxa_tiocmget':
drivers/char/moxa.c:754: error: `port' undeclared (first use in this functi=
on)
drivers/char/moxa.c:754: error: (Each undeclared identifier is reported onl=
y=20
once
drivers/char/moxa.c:754: error: for each function it appears in.)
drivers/char/moxa.c: In function `moxa_tiocmset':
drivers/char/moxa.c:779: error: `port' undeclared (first use in this functi=
on)



---

 25-akpm/drivers/char/moxa.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN drivers/char/moxa.c~serial-03-fixups-fix drivers/char/moxa.c
--- 25/drivers/char/moxa.c~serial-03-fixups-fix	Wed Jan 14 12:58:50 2004
+++ 25-akpm/drivers/char/moxa.c	Wed Jan 14 12:59:22 2004
@@ -749,6 +749,7 @@ static void moxa_put_char(struct tty_str
 static int moxa_tiocmget(struct tty_struct *tty, struct file *file)
 {
 	struct moxa_str *ch = (struct moxa_str *) tty->driver_data;
+	int port;
 	int flag = 0, dtr, rts;
 
 	port = PORTNO(tty);
@@ -774,6 +775,7 @@ static int moxa_tiocmset(struct tty_stru
 			 unsigned int set, unsigned int clear)
 {
 	struct moxa_str *ch = (struct moxa_str *) tty->driver_data;
+	int port;
 	int flag = 0, dtr, rts;
 
 	port = PORTNO(tty);

_
