patch-2.3.30 linux/drivers/scsi/scsi.c

Next file: linux/drivers/scsi/scsi_proc.c
Previous file: linux/drivers/scsi/qlogicisp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.29/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -2049,7 +2049,7 @@
 	 * This makes /proc/scsi and /proc/scsi/scsi visible.
 	 */
 #ifdef CONFIG_PROC_FS
-	proc_scsi = create_proc_entry ("scsi", S_IFDIR, 0);
+	proc_scsi = proc_mkdir("scsi", 0);
 	if (!proc_scsi) {
 		printk (KERN_ERR "cannot init /proc/scsi\n");
 		return -ENOMEM;
@@ -3335,7 +3335,7 @@
 	 * This makes /proc/scsi and /proc/scsi/scsi visible.
 	 */
 #ifdef CONFIG_PROC_FS
-	proc_scsi = create_proc_entry ("scsi", S_IFDIR, 0);
+	proc_scsi = proc_mkdir("scsi", 0);
 	if (!proc_scsi) {
 		printk (KERN_ERR "cannot init /proc/scsi\n");
 		return -ENOMEM;

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