Commit ddd55a74 authored by Tejun Heo's avatar Tejun Heo Committed by Greg Kroah-Hartman

[PATCH] driver-model: comment fix in bus.c

 df_01_driver_attach_comment_fix.patch

bus_match() was renamed to driver_probe_device() but the comment for
device_attach() wasn't updated.  This patch updates it.
Signed-off-by: default avatarTejun Heo <tj@home-tj.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 8f2a5465
...@@ -325,10 +325,10 @@ int device_attach(struct device * dev) ...@@ -325,10 +325,10 @@ int device_attach(struct device * dev)
* driver_attach - try to bind driver to devices. * driver_attach - try to bind driver to devices.
* @drv: driver. * @drv: driver.
* *
* Walk the list of devices that the bus has on it and try to match * Walk the list of devices that the bus has on it and try to
* the driver with each one. * match the driver with each one. If driver_probe_device()
* If bus_match() returns 0 and the @dev->driver is set, we've found * returns 0 and the @dev->driver is set, we've found a
* a compatible pair. * compatible pair.
* *
* Note that we ignore the -ENODEV error from driver_probe_device(), * Note that we ignore the -ENODEV error from driver_probe_device(),
* since it's perfectly valid for a driver not to bind to any devices. * since it's perfectly valid for a driver not to bind to any devices.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment