patch-2.3.21 linux/drivers/block/cpqarray.c

Next file: linux/drivers/block/ide-disk.c
Previous file: linux/drivers/block/cmos-probe.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.20/linux/drivers/block/cpqarray.c linux/drivers/block/cpqarray.c
@@ -212,6 +212,7 @@
  */
 static void ida_procinit(int i)
 {
+#ifdef CONFIG_PROC_FS
 	struct proc_dir_entry *pd;
 
 	if (proc_array == NULL) {
@@ -224,6 +225,7 @@
 	if (!pd) return;
 	pd->read_proc = ida_proc_get_info;
 	pd->data = hba[i];
+#endif	
 }
 
 /*
@@ -356,7 +358,9 @@
 			}
 		}
 	}
+#ifdef CONFIG_PROC_FS
 	remove_proc_entry("array", &proc_root);
+#endif
 	kfree(ida);
 	kfree(ida_sizes);
 	kfree(ida_hardsizes);

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