patch-2.4.0-test3 linux/drivers/char/ppdev.c

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

diff -u --recursive --new-file v2.4.0-test2/linux/drivers/char/ppdev.c linux/drivers/char/ppdev.c
@@ -105,8 +105,9 @@
 		return;
 	}
 
-	add->next = pp_port_list;
+	add->port = port;
 	down (&pp_port_list_lock);
+	add->next = pp_port_list;
 	pp_port_list = add;
 	up (&pp_port_list_lock);
 }
@@ -662,7 +663,7 @@
 			PP_MAJOR);
 		return -EIO;
 	}
-	devfs_handle = devfs_mk_dir (NULL, "parports", 0, NULL);
+	devfs_handle = devfs_mk_dir (NULL, "parports", NULL);
 	devfs_register_series (devfs_handle, "%u", PARPORT_MAX,
 			       DEVFS_FL_DEFAULT, PP_MAJOR, 0,
 			       S_IFCHR | S_IRUGO | S_IWUGO,

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