]> git.hungrycats.org Git - linux/commitdiff
USB core
authorGreg Kroah-Hartman <greg@kroah.com>
Fri, 26 Apr 2002 08:52:19 +0000 (01:52 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 26 Apr 2002 08:52:19 +0000 (01:52 -0700)
document the return value of usb_register_dev() better.

drivers/usb/core/usb.c

index 3ec1f3796e0c9b69b9e385fedff01d1c6b4b1179..33f880b7d883da68b24b291b7095220837de1514 100644 (file)
@@ -155,8 +155,10 @@ int usb_register(struct usb_driver *new_driver)
  * usb_deregister_dev() should be called when the driver is done with
  * the minor numbers given out by this function.
  *
- * Returns a negative error code on failure and 0 on success, alone with
- * a value that the driver should use in start_minor.
+ * Returns -ENODEV if CONFIG_USB_DYNAMIC_MINORS is not enabled in this
+ * kernel, -EINVAL if something bad happens with trying to register a
+ * device, and 0 on success, alone with a value that the driver should
+ * use in start_minor.
  */
 #ifdef CONFIG_USB_DYNAMIC_MINORS
 int usb_register_dev (struct usb_driver *new_driver, int num_minors, int *start_minor)