patch-2.3.47 linux/drivers/net/wan/sbni.c

Next file: linux/drivers/net/wan/sdla.c
Previous file: linux/drivers/net/wan/lapbether.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/net/wan/sbni.c linux/drivers/net/wan/sbni.c
@@ -1081,7 +1081,7 @@
 	}
 	sti();
 	outb(csr0 | RC_CHK, dev->base_addr + CSR0);
-	if(test_bit(LINK_STATE_START, &dev->state))
+	if(netif_running(dev))
 	{
 		struct timer_list* watchdog = &lp->watchdog; 
 		init_timer(watchdog);
@@ -1171,7 +1171,7 @@
 	/* struct net_local *lp = (struct net_local *)dev->priv; */
 	struct sockaddr *saddr = addr;
 	
-	if(test_bit(LINK_STATE_START, &dev->state))
+	if(netif_running(dev))
 	{
 		/* Only possible while card isn't started */
 		return -EBUSY;

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