summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2009-05-06 05:38:28 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-16 06:30:24 +0200
commit59a3cd7f9da60ac4ba8ae5a4cddc48fe4a450129 (patch)
tree9e3e5ae3439c119452862aee8a7c35887a3625d1 /drivers/base
parentdebugfs: dont stop on first failed recursive delete (diff)
downloadlinux-59a3cd7f9da60ac4ba8ae5a4cddc48fe4a450129.tar.xz
linux-59a3cd7f9da60ac4ba8ae5a4cddc48fe4a450129.zip
Driver core: fix comment for device_attach()
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>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/dd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index efd00de183b1..f0106875f01d 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -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.