ChangeSet 1.1876, 2004/08/25 13:23:15-07:00, romieu@fr.zoreil.com [PATCH] pci-driver: function documentation fix The returned value can not be null. Yet its description suggests differently. From: Francois Romieu Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman drivers/pci/pci-driver.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff -Nru a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c --- a/drivers/pci/pci-driver.c 2004-08-25 14:52:14 -07:00 +++ b/drivers/pci/pci-driver.c 2004-08-25 14:52:14 -07:00 @@ -390,10 +390,9 @@ * pci_register_driver - register a new pci driver * @drv: the driver structure to register * - * Adds the driver structure to the list of registered drivers - * Returns the number of pci devices which were claimed by the driver - * during registration. The driver remains registered even if the - * return value is zero. + * Adds the driver structure to the list of registered drivers. + * Returns a negative value on error. The driver remains registered + * even if no device was claimed during registration. */ int pci_register_driver(struct pci_driver *drv)