patch-2.4.0-test12 linux/drivers/isdn/avmb1/b1dma.c
Next file: linux/drivers/isdn/avmb1/b1isa.c
Previous file: linux/drivers/isdn/avmb1/b1capi.c
Back to the patch index
Back to the overall index
- Lines: 61
- Date:
Tue Nov 28 21:43:13 2000
- Orig file:
v2.4.0-test11/linux/drivers/isdn/avmb1/b1dma.c
- Orig date:
Sun Nov 19 18:44:07 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/isdn/avmb1/b1dma.c linux/drivers/isdn/avmb1/b1dma.c
@@ -1,11 +1,17 @@
/*
- * $Id: b1dma.c,v 1.9 2000/11/01 14:05:02 calle Exp $
+ * $Id: b1dma.c,v 1.11 2000/11/19 17:02:47 kai Exp $
*
* Common module for AVM B1 cards that support dma with AMCC
*
* (c) Copyright 2000 by Carsten Paeth (calle@calle.in-berlin.de)
*
* $Log: b1dma.c,v $
+ * Revision 1.11 2000/11/19 17:02:47 kai
+ * compatibility cleanup - part 3
+ *
+ * Revision 1.10 2000/11/19 17:01:53 kai
+ * compatibility cleanup - part 2
+ *
* Revision 1.9 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.
@@ -48,6 +54,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"
@@ -55,7 +62,7 @@
#include "capicmd.h"
#include "capiutil.h"
-static char *revision = "$Revision: 1.9 $";
+static char *revision = "$Revision: 1.11 $";
/* ------------------------------------------------------------- */
@@ -978,11 +985,6 @@
EXPORT_SYMBOL(b1dma_send_message);
EXPORT_SYMBOL(b1dmactl_read_proc);
-#ifdef MODULE
-#define b1dma_init init_module
-void cleanup_module(void);
-#endif
-
int b1dma_init(void)
{
char *p;
@@ -1000,8 +1002,9 @@
return 0;
}
-#ifdef MODULE
-void cleanup_module(void)
+void b1dma_exit(void)
{
}
-#endif
+
+module_init(b1dma_init);
+module_exit(b1dma_exit);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)