patch-2.3.26 linux/drivers/usb/mouse.c
Next file: linux/drivers/usb/printer.c
Previous file: linux/drivers/usb/keyboard.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Fri Nov 5 10:42:15 1999
- Orig file:
v2.3.25/linux/drivers/usb/mouse.c
- Orig date:
Mon Nov 1 13:56:26 1999
diff -u --recursive --new-file v2.3.25/linux/drivers/usb/mouse.c linux/drivers/usb/mouse.c
@@ -410,7 +410,9 @@
init_waitqueue_head(&mouse->wait);
mouse->fasync = NULL;
- usb_register(&mouse_driver);
+ if (usb_register(&mouse_driver) < 0)
+ return -1;
+
printk(KERN_INFO "USB HID boot protocol mouse driver 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)