patch-2.2.19 linux/drivers/isdn/icn/icn.c
Next file: linux/drivers/isdn/icn/icn.h
Previous file: linux/drivers/isdn/icn/Makefile
Back to the patch index
Back to the overall index
- Lines: 76
- Date:
Sun Mar 25 11:37:33 2001
- Orig file:
v2.2.18/drivers/isdn/icn/icn.c
- Orig date:
Sun Mar 25 11:28:24 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/drivers/isdn/icn/icn.c linux/drivers/isdn/icn/icn.c
@@ -1,4 +1,4 @@
-/* $Id: icn.c,v 1.65 2000/11/13 22:51:48 kai Exp $
+/* $Id: icn.c,v 1.65.6.2 2000/12/17 22:45:13 kai Exp $
* ISDN low-level module for the ICN active ISDN-Card.
*
@@ -21,6 +21,7 @@
*/
#include "icn.h"
+#include <linux/init.h>
/*
* Verbose bootcode- and protocol-downloading.
@@ -33,7 +34,7 @@
#undef MAP_DEBUG
static char
-*revision = "$Revision: 1.65 $";
+*revision = "$Revision: 1.65.6.2 $";
static int icn_addcard(int, char *, char *);
@@ -1638,9 +1639,7 @@
return 0;
}
-#ifdef MODULE
-#define icn_init init_module
-#else
+#ifndef MODULE
void
icn_setup(char *str, int *ints)
{
@@ -1661,10 +1660,9 @@
}
}
}
-#endif /* MODULES */
+#endif /* MODULE */
-int
-icn_init(void)
+static int __init icn_init(void)
{
char *p;
char rev[10];
@@ -1675,9 +1673,6 @@
dev.mcard = NULL;
dev.firstload = 1;
- /* No symbols to export, hide all symbols */
- EXPORT_NO_SYMBOLS;
-
if ((p = strchr(revision, ':'))) {
strcpy(rev, p + 1);
p = strchr(rev, '$');
@@ -1689,9 +1684,7 @@
return (icn_addcard(portbase, icn_id, icn_id2));
}
-#ifdef MODULE
-void
-cleanup_module(void)
+static void icn_exit(void)
{
isdn_ctrl cmd;
icn_card *card = cards;
@@ -1725,4 +1718,6 @@
release_shmem((ulong) dev.shmem, 0x4000);
printk(KERN_NOTICE "ICN-ISDN-driver unloaded\n");
}
-#endif
+
+module_init(icn_init);
+module_exit(icn_exit);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)