[PATCH] fix compilation error introduced by moxa correction

Linux Kernel Mailing List <[email protected]> Mon, 23 May 2005 11:12:58 +0000
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1525, 2005/05/23 08:12:58-03:00, [email protected]

	[PATCH] fix compilation error introduced by moxa correction
	
	moxa does not compile anymore in 2.4.31-pre2, because a variable is used
	before being declared. 



 moxa.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/char/moxa.c b/drivers/char/moxa.c
--- a/drivers/char/moxa.c	2005-05-23 10:04:12 -07:00
+++ b/drivers/char/moxa.c	2005-05-23 10:04:12 -07:00
@@ -294,6 +294,7 @@
 static int moxa_get_serial_info(struct moxa_str *, struct serial_struct *);
 static int moxa_set_serial_info(struct moxa_str *, struct serial_struct *);
 static void MoxaSetFifo(int port, int enable);
+static unsigned long moxaIntPend[MAX_BOARDS];
 
 #ifdef MODULE
 int init_module(void)
@@ -1579,7 +1580,6 @@
 
 static unsigned char moxaBuff[10240];
 static unsigned long moxaIntNdx[MAX_BOARDS];
-static unsigned long moxaIntPend[MAX_BOARDS];
 static unsigned long moxaIntTable[MAX_BOARDS];
 static char moxaChkPort[MAX_PORTS];
 static char moxaLineCtrl[MAX_PORTS];