patch-2.1.3 linux/drivers/char/misc.c
Next file: linux/drivers/char/tpqic02.c
Previous file: linux/drivers/block/md.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Wed Oct 9 20:11:11 1996
- Orig file:
v2.1.2/linux/drivers/char/misc.c
- Orig date:
Thu Aug 22 18:45:56 1996
diff -u --recursive --new-file v2.1.2/linux/drivers/char/misc.c linux/drivers/char/misc.c
@@ -184,16 +184,18 @@
#include <linux/symtab_end.h>
};
+static struct proc_dir_entry proc_misc = {
+ 0, 4, "misc",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, NULL /* ops -- default to array */,
+ &proc_misc_read /* get_info */,
+};
+
int misc_init(void)
{
#ifndef MODULE
#ifdef CONFIG_PROC_FS
- proc_register_dynamic(&proc_root, &(struct proc_dir_entry) {
- 0, 4, "misc",
- S_IFREG | S_IRUGO, 1, 0, 0,
- 0, NULL /* ops -- default to array */,
- &proc_misc_read /* get_info */,
- });
+ proc_register_dynamic(&proc_root, &proc_misc);
#endif /* PROC_FS */
#ifdef CONFIG_BUSMOUSE
bus_mouse_init();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov