patch-pre2.0.10 linux/net/appletalk/ddp.c

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

diff -u --recursive --new-file pre2.0.9/linux/net/appletalk/ddp.c linux/net/appletalk/ddp.c
@@ -2024,6 +2024,7 @@
 	register_netdevice_notifier(&ddp_notifier);
 	aarp_proto_init();
 
+#ifdef CONFIG_PROC_FS
 	proc_net_register(&(struct proc_dir_entry) {
 		PROC_NET_ATALK, 9, "appletalk",
 		S_IFREG | S_IRUGO, 1, 0, 0,
@@ -2042,6 +2043,7 @@
 		0, &proc_net_inode_operations,
 		atalk_if_get_info
 	});
+#endif	
 
 	printk(KERN_INFO "Appletalk 0.17 for Linux NET3.035\n");
 }
@@ -2095,9 +2097,11 @@
 
 	aarp_cleanup_module();
 
+#ifdef CONFIG_PROC_FS
 	proc_net_unregister(PROC_NET_ATALK);
 	proc_net_unregister(PROC_NET_AT_ROUTE);
 	proc_net_unregister(PROC_NET_ATIF);
+#endif	
 	unregister_netdevice_notifier(&ddp_notifier);
 	dev_remove_pack(&ltalk_packet_type);
 	dev_remove_pack(&ppptalk_packet_type);

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