Commit 866a9b85 authored by François Romieu's avatar François Romieu Committed by Greg Kroah-Hartman

[PATCH] pci-driver: function documentation fix

The returned value can not be null. Yet its description suggests differently.

From: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 65505013
...@@ -390,10 +390,9 @@ pci_populate_driver_dir(struct pci_driver *drv) ...@@ -390,10 +390,9 @@ pci_populate_driver_dir(struct pci_driver *drv)
* pci_register_driver - register a new pci driver * pci_register_driver - register a new pci driver
* @drv: the driver structure to register * @drv: the driver structure to register
* *
* Adds the driver structure to the list of registered drivers * Adds the driver structure to the list of registered drivers.
* Returns the number of pci devices which were claimed by the driver * Returns a negative value on error. The driver remains registered
* during registration. The driver remains registered even if the * even if no device was claimed during registration.
* return value is zero.
*/ */
int int
pci_register_driver(struct pci_driver *drv) pci_register_driver(struct pci_driver *drv)
......
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