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

Next file: linux/drivers/video/Config.in
Previous file: linux/drivers/usb/usb_scsi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.25/linux/drivers/usb/uss720.c linux/drivers/usb/uss720.c
@@ -640,7 +640,9 @@
 
 static int __init uss720_init(void)
 {
-	usb_register(&uss720_driver);
+	if (usb_register(&uss720_driver) < 0)
+		return -1;
+
         printk(KERN_INFO "uss720: USB<->IEEE1284 cable driver v0.4 registered.\n"
 	       KERN_INFO "uss720: (C) 1999 by Thomas Sailer, <sailer@ife.ee.ethz.ch>\n");
 	return 0;

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