Re: 2.5.55: static compilation of mxser.c doesn't work

From: Adrian Bunk (bunk@fs.tum.de)
Date: Sun Jan 12 2003 - 04:32:05 EST


On Fri, Jan 10, 2003 at 03:12:43PM +0000, Alan Cox wrote:
> On Fri, 2003-01-10 at 14:03, Adrian Bunk wrote:
> > Hi Arnaldo,
> >
> > the 2.5 Linux kernel contains your patch
> >
> > o mxser: add module_exit/module_init
> > This fixes the compilation problem in 2.5
> >
> > This patch renames mxser_init to mxser_module_init causing a compile
> > error when trying to compile this driver statically into the kernel
> > since mxser_init is still called from drivers/char/tty_io.c.
>
> You should be able to kill the call from tty_io.c

Unfortunately I don't have the hardware to test whether the driver
actually works but the patch below fixes the compilation.

cu
Adrian

--- linux-2.5.56/drivers/char/tty_io.c.old 2003-01-12 10:15:39.000000000 +0100
+++ linux-2.5.56/drivers/char/tty_io.c 2003-01-12 10:16:14.000000000 +0100
@@ -2372,9 +2372,6 @@
         rs_8xx_init();
 #endif /* CONFIG_8xx */
         pty_init();
-#ifdef CONFIG_MOXA_SMARTIO
- mxser_init();
-#endif
 #ifdef CONFIG_MOXA_INTELLIO
         moxa_init();
 #endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:39 EST