patch-2.3.25 linux/drivers/video/fbmem.c

Next file: linux/drivers/zorro/proc.c
Previous file: linux/drivers/video/fbcon-mac.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.24/linux/drivers/video/fbmem.c linux/drivers/video/fbmem.c
@@ -646,16 +646,12 @@
 	return 0;
 }
 
-static struct proc_dir_entry *proc_fbmem;
-
 void __init 
 fbmem_init(void)
 {
 	int i;
 
-	proc_fbmem = create_proc_entry("fb", 0, 0);
-	if (proc_fbmem)
-		proc_fbmem->read_proc = fbmem_read_proc;
+	create_proc_read_entry("fb", 0, 0, fbmem_read_proc, NULL);
 
 	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 (who was at: slshen@lbl.gov)