patch-2.3.48 linux/drivers/char/lp.c

Next file: linux/drivers/char/mem.c
Previous file: linux/drivers/char/h8.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/drivers/char/lp.c linux/drivers/char/lp.c
@@ -783,12 +783,12 @@
 		return -EIO;
 	}
 
+	devfs_handle = devfs_mk_dir (NULL, "printers", 0, NULL);
+
 	if (parport_register_driver (&lp_driver)) {
 		printk ("lp: unable to register with parport\n");
 		return -EIO;
 	}
-
-	devfs_handle = devfs_mk_dir (NULL, "printers", 0, NULL);
 
 	if (!lp_count) {
 		printk (KERN_INFO "lp: driver loaded but no devices found\n");

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