Commit 7cd6abc5 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB core

document the return value of usb_register_dev() better.
parent 794d0b0c
...@@ -155,8 +155,10 @@ int usb_register(struct usb_driver *new_driver) ...@@ -155,8 +155,10 @@ int usb_register(struct usb_driver *new_driver)
* usb_deregister_dev() should be called when the driver is done with * usb_deregister_dev() should be called when the driver is done with
* the minor numbers given out by this function. * the minor numbers given out by this function.
* *
* Returns a negative error code on failure and 0 on success, alone with * Returns -ENODEV if CONFIG_USB_DYNAMIC_MINORS is not enabled in this
* a value that the driver should use in start_minor. * 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 #ifdef CONFIG_USB_DYNAMIC_MINORS
int usb_register_dev (struct usb_driver *new_driver, int num_minors, int *start_minor) int usb_register_dev (struct usb_driver *new_driver, int num_minors, int *start_minor)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment