patch-2.3.25 linux/arch/arm/kernel/ecard.c
Next file: linux/arch/arm/kernel/setup.c
Previous file: linux/arch/arm/kernel/dec21285.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Fri Oct 29 11:01:12 1999
- Orig file:
v2.3.24/linux/arch/arm/kernel/ecard.c
- Orig date:
Fri Oct 22 13:21:44 1999
diff -u --recursive --new-file v2.3.24/linux/arch/arm/kernel/ecard.c linux/arch/arm/kernel/ecard.c
@@ -888,19 +888,13 @@
return (count > cnt) ? cnt : count;
}
-static struct proc_dir_entry proc_ecard_devices = {
- PROC_BUS_ECARD_DEVICES, 7, "devices",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, &proc_array_inode_operations,
- get_ecard_dev_info
-};
-
-static struct proc_dir_entry *proc_bus_ecard_dir;
+static struct proc_dir_entry *proc_bus_ecard_dir = NULL;
static void ecard_proc_init(void)
{
proc_bus_ecard_dir = create_proc_entry("ecard", S_IFDIR, proc_bus);
- proc_register(proc_bus_ecard_dir, &proc_ecard_devices);
+ create_proc_info_entry("devices", 0, proc_bus_ecard_dir,
+ get_ecard_dev_info);
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)