patch-2.4.0-test2 linux/drivers/char/vc_screen.c

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

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/char/vc_screen.c linux/drivers/char/vc_screen.c
@@ -476,12 +476,12 @@
     }
     else
     {
-	devfs_register (devfs_handle, name + 1, 0, DEVFS_FL_DEFAULT,
+	devfs_register (devfs_handle, name + 1, DEVFS_FL_DEFAULT,
 			VCS_MAJOR, index + 1,
-			S_IFCHR | S_IRUSR | S_IWUSR, 0, 0, &vcs_fops, NULL);
-	devfs_register (devfs_handle, name, 0, DEVFS_FL_DEFAULT,
+			S_IFCHR | S_IRUSR | S_IWUSR, &vcs_fops, NULL);
+	devfs_register (devfs_handle, name, DEVFS_FL_DEFAULT,
 			VCS_MAJOR, index + 129,
-			S_IFCHR | S_IRUSR | S_IWUSR, 0, 0, &vcs_fops, NULL);
+			S_IFCHR | S_IRUSR | S_IWUSR, &vcs_fops, NULL);
     }
 #endif /* CONFIG_DEVFS_FS */
 }
@@ -496,12 +496,12 @@
 		printk("unable to get major %d for vcs device", VCS_MAJOR);
 
 	devfs_handle = devfs_mk_dir (NULL, "vcc", 3, NULL);
-	devfs_register (devfs_handle, "0", 1, DEVFS_FL_DEFAULT,
+	devfs_register (devfs_handle, "0", DEVFS_FL_DEFAULT,
 			VCS_MAJOR, 0,
-			S_IFCHR | S_IRUSR | S_IWUSR, 0, 0, &vcs_fops, NULL);
-	devfs_register (devfs_handle, "a", 1, DEVFS_FL_DEFAULT,
+			S_IFCHR | S_IRUSR | S_IWUSR, &vcs_fops, NULL);
+	devfs_register (devfs_handle, "a", DEVFS_FL_DEFAULT,
 			VCS_MAJOR, 128,
-			S_IFCHR | S_IRUSR | S_IWUSR, 0, 0, &vcs_fops, NULL);
+			S_IFCHR | S_IRUSR | S_IWUSR, &vcs_fops, NULL);
 
 	return error;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)