patch-2.3.26 linux/drivers/usb/printer.c

Next file: linux/drivers/usb/proc_usb.c
Previous file: linux/drivers/usb/mouse.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.25/linux/drivers/usb/printer.c linux/drivers/usb/printer.c
@@ -419,12 +419,8 @@
 
 int usb_printer_init(void)
 {
-	if (usb_register(&printer_driver)) {
-		printk(KERN_ERR "USB Printer driver cannot register: "
-			"minor number %d already in use\n",
-			printer_driver.minor);
-		return 1;
-	}
+	if (usb_register(&printer_driver))
+		return -1;
 
 	printk(KERN_INFO "USB Printer support registered.\n");
 	return 0;
@@ -433,7 +429,6 @@
 #ifdef MODULE
 int init_module(void)
 {
-
 	return usb_printer_init();
 }
 

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