patch-2.4.0-test12 linux/drivers/isdn/avmb1/t1isa.c
Next file: linux/drivers/isdn/avmb1/t1pci.c
Previous file: linux/drivers/isdn/avmb1/kcapi.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Tue Nov 28 21:43:13 2000
- Orig file:
v2.4.0-test11/linux/drivers/isdn/avmb1/t1isa.c
- Orig date:
Sun Nov 19 18:44:08 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/isdn/avmb1/t1isa.c linux/drivers/isdn/avmb1/t1isa.c
@@ -1,11 +1,15 @@
/*
- * $Id: t1isa.c,v 1.15 2000/11/01 14:05:02 calle Exp $
+ * $Id: t1isa.c,v 1.16 2000/11/23 20:45:14 kai Exp $
*
* Module for AVM T1 HEMA-card.
*
* (c) Copyright 1999 by Carsten Paeth (calle@calle.in-berlin.de)
*
* $Log: t1isa.c,v $
+ * Revision 1.16 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.15 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.
@@ -100,7 +104,7 @@
#include "capilli.h"
#include "avmcard.h"
-static char *revision = "$Revision: 1.15 $";
+static char *revision = "$Revision: 1.16 $";
/* ------------------------------------------------------------- */
@@ -613,12 +617,7 @@
add_card: t1isa_add_card,
};
-#ifdef MODULE
-#define t1isa_init init_module
-void cleanup_module(void);
-#endif
-
-int t1isa_init(void)
+static int __init t1isa_init(void)
{
struct capi_driver *driver = &t1isa_driver;
char *p;
@@ -646,9 +645,10 @@
return retval;
}
-#ifdef MODULE
-void cleanup_module(void)
+static void __exit t1isa_exit(void)
{
detach_capi_driver(&t1isa_driver);
}
-#endif
+
+module_init(t1isa_init);
+module_exit(t1isa_exit);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)