Moxa: Fix warning: 'CheckIsMoxaMust' defined but not used
Subsystems (2)
PATCH 1/1 Moxa: Fix warning: 'CheckIsMoxaMust' defined but not used
This should have been part of the previous Moxa patch I just sent, but I forgot to include it, so here it is as a seperate patch. Sorry about that.
This fixes the warning :
drivers/char/mxser.c:427: warning: 'CheckIsMoxaMust' defined but not used
when building Moxa driver without CONFIG_PCI.
Signed-off-by Jesper Juhl <[email protected]>
---
mxser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/char/mxser.c renamed from drivers/char/mxser.c~ +2 -1
@@ -424,7 +424,7 @@static void mxser_startrx (struct tty_struct *tty);static void mxser_stoprx (struct tty_struct *tty); - +#ifdef CONFIG_PCI static int CheckIsMoxaMust (int io) {u8 oldmcr, hwid;
@@ -447,6 +447,7 @@ }return MOXA_OTHER_UART ; } +#endif /* above is modified by Victor Yu. 08-15-2002 */