patch-pre2.0.6 linux/drivers/net/dummy.c
Next file: linux/drivers/net/loopback.c
Previous file: linux/drivers/net/8390.c
Back to the patch index
Back to the overall index
-  Lines: 28
 -  Date:
Sat May 18 20:08:04 1996
 -  Orig file: 
pre2.0.5/linux/drivers/net/dummy.c
 -  Orig date: 
Tue May  7 16:22:27 1996
 
diff -u --recursive --new-file pre2.0.5/linux/drivers/net/dummy.c linux/drivers/net/dummy.c
@@ -58,7 +58,6 @@
 static struct enet_statistics *dummy_get_stats(struct device *dev);
 #endif
 
-#ifdef MODULE
 static int dummy_open(struct device *dev)
 {
 	MOD_INC_USE_COUNT;
@@ -70,7 +69,6 @@
 	MOD_DEC_USE_COUNT;
 	return 0;
 }
-#endif
 
 
 int dummy_init(struct device *dev)
@@ -89,10 +87,9 @@
 	memset(dev->priv, 0, sizeof(struct enet_statistics));
 	dev->get_stats		= dummy_get_stats;
 #endif
-#ifdef MODULE
+
 	dev->open = &dummy_open;
 	dev->stop = &dummy_close;
-#endif
 
 	/* Fill in the fields of the device structure with ethernet-generic values. */
 	ether_setup(dev);
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