Messages in this thread Patch in this message | | | Subject | Re: [PATCH] Driver Core patches for 2.6.9-rc1 | Date | Wed, 25 Aug 2004 15:36:29 -0700 | From | Greg KH <> |
| |
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 <romieu@fr.zoreil.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
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) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |