patch-1.3.39 linux/drivers/net/eql.c

Next file: linux/drivers/net/ewrk3.c
Previous file: linux/drivers/net/eexpress.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.38/linux/drivers/net/eql.c linux/drivers/net/eql.c
@@ -291,9 +291,7 @@
 	eql->timer_on = 1;
 	add_timer (&eql->timer);
 
-#ifdef MODULE
 	MOD_INC_USE_COUNT;
-#endif
 	return 0;
       }
   return 1;
@@ -318,9 +316,7 @@
 
   eql_delete_slave_queue (eql->queue);
 
-#ifdef MODULE
   MOD_DEC_USE_COUNT;
-#endif
 
   return 0;
 }
@@ -1203,12 +1199,7 @@
 void
 cleanup_module(void)
 {
-	if (MOD_IN_USE)
-		printk("eql: device busy, remove delayed\n");
-	else
-	{
-		unregister_netdev(&dev_eql);
-	}
+	unregister_netdev(&dev_eql);
 }
 #endif /* MODULE */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this