patch-2.3.50 linux/drivers/net/aironet4500_core.c
Next file: linux/drivers/net/aironet4500_proc.c
Previous file: linux/drivers/net/acenic.h
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Mon Mar 6 15:44:54 2000
- Orig file:
v2.3.49/linux/drivers/net/aironet4500_core.c
- Orig date:
Thu Mar 2 14:36:22 2000
diff -u --recursive --new-file v2.3.49/linux/drivers/net/aironet4500_core.c linux/drivers/net/aironet4500_core.c
@@ -18,6 +18,7 @@
*/
#include <linux/module.h>
+#include <linux/init.h>
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
@@ -2521,7 +2522,7 @@
struct net_device * aironet4500_devices[MAX_AWCS] = {NULL,NULL,NULL,NULL};
-static int awc_debug = 0; // 0xffffff;
+int awc_debug = 0; // 0xffffff;
static int p802_11_send = 0; // 1
static int awc_process_tx_results = 0;
@@ -3197,9 +3198,7 @@
return 0;
};
-#ifdef MODULE
-
-int init_module(void)
+static int aironet_core_init(void)
{
// unsigned long flags;
@@ -3210,11 +3209,12 @@
}
-void cleanup_module(void)
+static void aironet_core_exit(void)
{
printk(KERN_INFO "aironet4500 unloading core module \n");
}
-
-#endif
+module_init(aironet_core_init);
+module_exit(aironet_core_exit);
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)