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

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

diff -u --recursive --new-file v2.3.25/linux/drivers/usb/hp_scanner.c linux/drivers/usb/hp_scanner.c
@@ -299,7 +299,9 @@
 int
 usb_hp_scanner_init(void)
 {
-	usb_register(&scanner_driver);
+	if (usb_register(&scanner_driver) < 0)
+		return -1;
+
 	printk(KERN_DEBUG "USB Scanner support registered.\n");
 	return 0;
 }

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