patch-2.1.43 linux/drivers/net/baycom.c
Next file: linux/drivers/net/defxx.c
Previous file: linux/drivers/net/arcnet.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Thu Jun 12 16:22:06 1997
- Orig file:
v2.1.42/linux/drivers/net/baycom.c
- Orig date:
Wed Apr 23 19:01:18 1997
diff -u --recursive --new-file v2.1.42/linux/drivers/net/baycom.c linux/drivers/net/baycom.c
@@ -68,6 +68,7 @@
* History:
* 0.1 26.06.96 Adapted from baycom.c and made network driver interface
* 18.10.96 Changed to new user space access routines (copy_{to,from}_user)
+ * 0.3 26.04.96 init code/data tagged
*/
/*****************************************************************************/
@@ -89,7 +90,6 @@
#include <linux/netdevice.h>
#include <linux/hdlcdrv.h>
#include <linux/baycom.h>
-#include <linux/init.h>
/* --------------------------------------------------------------------- */
@@ -133,6 +133,14 @@
}
#endif
+#if LINUX_VERSION_CODE >= 0x20123
+#include <linux/init.h>
+#else
+#define __init
+#define __initdata
+#define __initfunc(x) x
+#endif
+
/* --------------------------------------------------------------------- */
#define BAYCOM_DEBUG
@@ -1001,7 +1009,7 @@
#endif
-int init_module(void)
+__initfunc(int init_module(void))
{
baycom_ports[0].mode = mode;
baycom_ports[0].iobase = iobase;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov