patch-2.4.0-test12 linux/drivers/isdn/avmb1/b1.c
Next file: linux/drivers/isdn/avmb1/b1capi.c
Previous file: linux/drivers/isdn/avmb1/avm_cs.c
Back to the patch index
Back to the overall index
- Lines: 72
- Date:
Tue Nov 28 21:43:13 2000
- Orig file:
v2.4.0-test11/linux/drivers/isdn/avmb1/b1.c
- Orig date:
Sun Nov 19 18:44:07 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/isdn/avmb1/b1.c linux/drivers/isdn/avmb1/b1.c
@@ -1,11 +1,26 @@
/*
- * $Id: b1.c,v 1.16 2000/08/04 15:36:31 calle Exp $
+ * $Id: b1.c,v 1.20 2000/11/23 20:45:14 kai Exp $
*
* Common module for AVM B1 cards.
*
* (c) Copyright 1999 by Carsten Paeth (calle@calle.in-berlin.de)
*
* $Log: b1.c,v $
+ * Revision 1.20 2000/11/23 20:45:14 kai
+ * fixed module_init/exit stuff
+ * Note: compiled-in kernel doesn't work pre 2.2.18 anymore.
+ *
+ * Revision 1.19 2000/11/19 17:02:47 kai
+ * compatibility cleanup - part 3
+ *
+ * Revision 1.18 2000/11/19 17:01:53 kai
+ * compatibility cleanup - part 2
+ *
+ * Revision 1.17 2000/11/01 14:05:02 calle
+ * - use module_init/module_exit from linux/init.h.
+ * - all static struct variables are initialized with "membername:" now.
+ * - avm_cs.c, let it work with newer pcmcia-cs.
+ *
* Revision 1.16 2000/08/04 15:36:31 calle
* copied wrong from file to file :-(
*
@@ -94,6 +109,7 @@
#include <linux/ioport.h>
#include <linux/capi.h>
#include <asm/io.h>
+#include <linux/init.h>
#include <asm/uaccess.h>
#include <linux/netdevice.h>
#include "capilli.h"
@@ -101,7 +117,7 @@
#include "capicmd.h"
#include "capiutil.h"
-static char *revision = "$Revision: 1.16 $";
+static char *revision = "$Revision: 1.20 $";
/* ------------------------------------------------------------- */
@@ -728,12 +744,7 @@
EXPORT_SYMBOL(b1ctl_read_proc);
-#ifdef MODULE
-#define b1_init init_module
-void cleanup_module(void);
-#endif
-
-int b1_init(void)
+static int __init b1_init(void)
{
char *p;
char rev[10];
@@ -750,8 +761,9 @@
return 0;
}
-#ifdef MODULE
-void cleanup_module(void)
+static void __exit b1_exit(void)
{
}
-#endif
+
+module_init(b1_init);
+module_exit(b1_exit);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)