patch-2.1.36 linux/drivers/char/misc.c

Next file: linux/drivers/char/msbusmouse.c
Previous file: linux/drivers/char/mem.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.35/linux/drivers/char/misc.c linux/drivers/char/misc.c
@@ -39,6 +39,7 @@
 #include <linux/malloc.h>
 #include <linux/proc_fs.h>
 #include <linux/stat.h>
+#include <linux/init.h>
 #ifdef CONFIG_APM
 #include <linux/apm_bios.h>
 #endif
@@ -184,7 +185,7 @@
 static struct proc_dir_entry *proc_misc;	
 #endif
 
-int misc_init(void)
+__initfunc(int misc_init(void))
 {
 #ifndef MODULE
 #ifdef CONFIG_PROC_FS

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov