patch-2.3.99-pre7 linux/drivers/net/pcmcia/netwave_cs.c

Next file: linux/drivers/net/pcmcia/nmclan_cs.c
Previous file: linux/drivers/net/pcmcia/ibmtr_cs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/pcmcia/netwave_cs.c linux/drivers/net/pcmcia/netwave_cs.c
@@ -502,7 +502,7 @@
     dev->do_ioctl = &netwave_ioctl;
 
     ether_setup(dev);
-    dev->name = priv->node.dev_name;
+    strcpy(dev->name, priv->node.dev_name);
     dev->init = &netwave_init;
     dev->open = &netwave_open;
     dev->stop = &netwave_close;
@@ -1224,8 +1224,7 @@
     writeb(NETWAVE_CMD_EOC, ramBase + NETWAVE_EREG_CB + 3);
 	
     /* If watchdog not already active, activate it... */
-    if(priv->watchdog.prev == (struct timer_list *) NULL) {
-
+    if (!timer_pending(&priv->watchdog)) {
 	/* set timer to expire in WATCHDOG_JIFFIES */
 	priv->watchdog.expires = jiffies + WATCHDOG_JIFFIES;
 	add_timer(&priv->watchdog);

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