Skip to content
Snippets Groups Projects
Commit 59a3cd7f authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Greg Kroah-Hartman
Browse files

Driver core: fix comment for device_attach()


We are looking for matching drivers, not devices.

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 56a83cc9
No related branches found
No related tags found
No related merge requests found
...@@ -226,7 +226,7 @@ static int __device_attach(struct device_driver *drv, void *data) ...@@ -226,7 +226,7 @@ static int __device_attach(struct device_driver *drv, void *data)
* pair is found, break out and return. * pair is found, break out and return.
* *
* Returns 1 if the device was bound to a driver; * 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. * -ENODEV if the device is not registered.
* *
* When called for a USB interface, @dev->parent->sem must be held. * When called for a USB interface, @dev->parent->sem must be held.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment