Driver core: fix comment for device_attach()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 May 2009 03:38:28 +0000 (20:38 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:30:24 +0000 (21:30 -0700)
We are looking for matching drivers, not devices.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/dd.c

index efd00de183b12dd7b6fc31f2fed3f5e566afeac5..f0106875f01da48f9fb70afb6b2a68ac7259e37a 100644 (file)
@@ -226,7 +226,7 @@ static int __device_attach(struct device_driver *drv, void *data)
  * pair is found, break out and return.
  *
  * Returns 1 if the device was bound to a driver;
- * 0 if no matching device was found;
+ * 0 if no matching driver was found;
  * -ENODEV if the device is not registered.
  *
  * When called for a USB interface, @dev->parent->sem must be held.