patch-2.3.25 linux/drivers/zorro/proc.c

Next file: linux/fs/Config.in
Previous file: linux/drivers/video/fbmem.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.24/linux/drivers/zorro/proc.c linux/drivers/zorro/proc.c
@@ -134,13 +134,6 @@
 	return (count > cnt) ? cnt : count;
 }
 
-static struct proc_dir_entry proc_zorro_devices = {
-	PROC_BUS_ZORRO_DEVICES, 7, "devices",
-	S_IFREG | S_IRUGO, 1, 0, 0,
-	0, &proc_array_inode_operations,
-	get_zorro_dev_info
-};
-
 static struct proc_dir_entry *proc_bus_zorro_dir;
 
 static int __init zorro_proc_attach_device(u_int slot)
@@ -165,7 +158,7 @@
 	if (!MACH_IS_AMIGA || !AMIGAHW_PRESENT(ZORRO))
 		return;
 	proc_bus_zorro_dir = create_proc_entry("zorro", S_IFDIR, proc_bus);
-	proc_register(proc_bus_zorro_dir, &proc_zorro_devices);
+	create_proc_info_entry("devices", 0, proc_bus_zorro_dir, get_zorro_dev_info);
 	for (slot = 0; slot < zorro_num_autocon; slot++)
 	    zorro_proc_attach_device(slot);
 }

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