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

Next file: linux/drivers/zorro/zorro.c
Previous file: linux/drivers/zorro/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.49/linux/drivers/zorro/proc.c linux/drivers/zorro/proc.c
@@ -120,14 +120,18 @@
 	return 0;
 }
 
-void __init zorro_proc_init(void)
+static int __init zorro_proc_init(void)
 {
 	u_int slot;
 
-	if (!MACH_IS_AMIGA || !AMIGAHW_PRESENT(ZORRO))
-		return;
-	proc_bus_zorro_dir = proc_mkdir("zorro", proc_bus);
-	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);
+	if (MACH_IS_AMIGA && AMIGAHW_PRESENT(ZORRO)) {
+		proc_bus_zorro_dir = proc_mkdir("zorro", proc_bus);
+		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);
+	}
+	return 0;
 }
+
+__initcall(zorro_proc_init);

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