patch-2.1.37 linux/drivers/char/fbmem.c

Next file: linux/drivers/char/ftape/kernel-interface.c
Previous file: linux/drivers/char/esp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/drivers/char/fbmem.c linux/drivers/char/fbmem.c
@@ -16,6 +16,7 @@
 #include <linux/malloc.h>
 #include <linux/mman.h>
 #include <linux/tty.h>
+#include <linux/init.h>
 
 #include <asm/setup.h>
 #include <asm/uaccess.h>
@@ -300,8 +301,8 @@
 	return 0;
 }
 
-void
-fbmem_init(void)
+__initfunc(void
+fbmem_init(void))
 {
 	if (register_chrdev(FB_MAJOR,"fb",&fb_fops))
 		printk("unable to get major %d for fb devs\n", FB_MAJOR);

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