patch-2.4.10 linux/drivers/net/wireless/orinoco_cs.c

Next file: linux/drivers/net/yellowfin.c
Previous file: linux/drivers/net/wireless/orinoco.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/drivers/net/wireless/orinoco_cs.c linux/drivers/net/wireless/orinoco_cs.c
@@ -1,4 +1,4 @@
-/* orinoco_cs.c 0.06f	- (formerly known as dldwd_cs.c)
+/* orinoco_cs.c 0.07	- (formerly known as dldwd_cs.c)
  *
  * A driver for "Hermes" chipset based PCMCIA wireless adaptors, such
  * as the Lucent WavelanIEEE/Orinoco cards and their OEM (Cabletron/
@@ -15,7 +15,7 @@
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/ptrace.h>
-#include <linux/malloc.h>
+#include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/timer.h>
 #include <linux/ioport.h>
@@ -42,10 +42,11 @@
 
 /*====================================================================*/
 
-static const char version[] __initdata = "orinoco_cs.c 0.06f (David Gibson <hermes@gibson.dropbear.id.au> and others)";
+static char version[] __initdata = "orinoco_cs.c 0.07 (David Gibson <hermes@gibson.dropbear.id.au> and others)";
 
 MODULE_AUTHOR("David Gibson <hermes@gibson.dropbear.id.au>");
 MODULE_DESCRIPTION("Driver for PCMCIA Lucent Orinoco, Prism II based and similar wireless cards");
+MODULE_LICENSE("Dual MPL/GPL");
 
 /* Parameters that can be set with 'insmod' */
 
@@ -181,7 +182,7 @@
 	dldwd_card_t* card = (dldwd_card_t *)priv->card;
 	dev_link_t *link = &card->link;
 	conf_reg_t reg;
-	u_long default_cor; 
+	u_int default_cor; 
 
 	TRACE_ENTER(priv->ndev.name);
 
@@ -713,6 +714,9 @@
 
 	switch (event) {
 	case CS_EVENT_CARD_REMOVAL:
+		/* FIXME: Erg.. this whole hw_ready thing looks racy
+		   to me.  this may not be fixable without changin the
+		   PCMCIA subsystem, though */
 		priv->hw_ready = 0;
 		dldwd_shutdown(priv);
 		link->state &= ~DEV_PRESENT;
@@ -780,8 +784,7 @@
 
 	TRACE_ENTER("dldwd");
 
-	printk(KERN_DEBUG "dldwd: David's Less Dodgy WaveLAN/IEEE Driver\n"
-	       KERN_DEBUG "%s\n", version);
+	printk(KERN_DEBUG "%s\n", version);
 
 	CardServices(GetCardServicesInfo, &serv);
 	if (serv.Revision != CS_RELEASE_CODE) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)