patch-2.3.30 linux/drivers/pcmcia/ds.c

Next file: linux/drivers/pcmcia/i82365.c
Previous file: linux/drivers/pcmcia/cs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.29/linux/drivers/pcmcia/ds.c linux/drivers/pcmcia/ds.c
@@ -899,11 +899,8 @@
 	major_dev = i;
 
 #ifdef CONFIG_PROC_FS
-    if (proc_pccard) {
-	struct proc_dir_entry *ent;
-	ent = create_proc_entry("drivers", 0, proc_pccard);
-	ent->read_proc = proc_read_drivers;
-    }
+    if (proc_pccard)
+	create_proc_read_entry("drivers",0,proc_pccard,proc_read_drivers,NULL);
     init_status = 0;
 #endif
     return 0;

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