patch-2.1.3 linux/net/core/dev.c

Next file: linux/net/core/net_alias.c
Previous file: linux/net/ax25/af_ax25.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.2/linux/net/core/dev.c linux/net/core/dev.c
@@ -1369,6 +1369,15 @@
 extern void sdla_setup(void);
 extern void dlci_setup(void);
 
+#ifdef CONFIG_PROC_FS
+static struct proc_dir_entry proc_net_dev = {
+	PROC_NET_DEV, 3, "dev",
+	S_IFREG | S_IRUGO, 1, 0, 0,
+	0, &proc_net_inode_operations,
+	dev_get_info
+};
+#endif
+
 int net_dev_init(void)
 {
 	struct device *dev, **dp;
@@ -1395,9 +1404,6 @@
 #if defined(CONFIG_LANCE)
 	lance_init();
 #endif
-#if defined(CONFIG_NI65)
-	ni65_init();
-#endif
 #if defined(CONFIG_PI)
 	pi_init();
 #endif	
@@ -1449,12 +1455,7 @@
 	}
 
 #ifdef CONFIG_PROC_FS
-	proc_net_register(&(struct proc_dir_entry) {
-		PROC_NET_DEV, 3, "dev",
-		S_IFREG | S_IRUGO, 1, 0, 0,
-		0, &proc_net_inode_operations,
-		dev_get_info
-	});
+	proc_net_register(&proc_net_dev);
 #endif
 
 	/*	

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov