patch-2.3.19 linux/drivers/net/hamradio/yam.c

Next file: linux/drivers/net/irda/Config.in
Previous file: linux/drivers/net/hamradio/baycom_ser_hdx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.18/linux/drivers/net/hamradio/yam.c linux/drivers/net/hamradio/yam.c
@@ -893,10 +893,12 @@
 }
 
 #ifdef CONFIG_INET
+
 #ifndef PROC_NET_YAM
 #define PROC_NET_YAM (PROC_NET_LAST+10)		/* Sorry again... */
 #endif
 
+#ifdef CONFIG_PROC_FS
 struct proc_dir_entry yam_proc_dir_entry =
 {
 	PROC_NET_YAM, 3, "yam", S_IFREG | S_IRUGO, 1, 0, 0, 0,
@@ -905,6 +907,10 @@
 
 #define yam_net_procfs_init()   proc_net_register(&yam_proc_dir_entry);
 #define yam_net_procfs_remove() proc_net_unregister(PROC_NET_YAM);
+#else
+#define yam_net_procfs_init()
+#define yam_net_procfs_remove()
+#endif
 #else
 #define yam_net_procfs_init()
 #define yam_net_procfs_remove()

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