patch-2.3.51 linux/drivers/pcmcia/i82365.c

Next file: linux/drivers/pcmcia/yenta.c
Previous file: linux/drivers/pci/pci.ids
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.50/linux/drivers/pcmcia/i82365.c linux/drivers/pcmcia/i82365.c
@@ -1336,7 +1336,6 @@
 
 static void pcic_proc_setup(unsigned int sock, struct proc_dir_entry *base)
 {
-#ifdef CONFIG_PROC_FS
     socket_info_t *s = &socket[sock];
 
     if (s->flags & IS_ALIVE)
@@ -1345,7 +1344,6 @@
     create_proc_read_entry("info", 0, base, proc_read_info, s);
     create_proc_read_entry("exca", 0, base, proc_read_exca, s);
     s->proc = base;
-#endif
 }
 
 static void pcic_proc_remove(u_short sock)
@@ -1355,6 +1353,10 @@
     remove_proc_entry("info", base);
     remove_proc_entry("exca", base);
 }
+
+#else
+
+#define pcic_proc_setup NULL
 
 #endif /* CONFIG_PROC_FS */
 

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