patch-2.1.91 linux/drivers/char/mem.c

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

diff -u --recursive --new-file v2.1.90/linux/drivers/char/mem.c linux/drivers/char/mem.c
@@ -38,6 +38,9 @@
 #ifdef CONFIG_VIDEO_DEV
 extern int videodev_init(void);
 #endif
+#if defined(CONFIG_FB)
+extern void fbmem_init( void );
+#endif
 
 static ssize_t do_write_mem(struct file * file, void *p, unsigned long realp,
 			    const char * buf, size_t count, loff_t *ppos)
@@ -522,6 +525,9 @@
 	if (register_chrdev(MEM_MAJOR,"mem",&memory_fops))
 		printk("unable to get major %d for memory devs\n", MEM_MAJOR);
 	rand_initialize();
+#if defined (CONFIG_FB)
+	fbmem_init();
+#endif
 	tty_init();
 #ifdef CONFIG_PRINTER
 	lp_init();

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