driver_attach — try to bind driver to devices.
void driver_attach ( | struct device_driver * | drv) ; |
Walk the list of devices that the bus has on it and try to
match the driver with each one. If driver_probe_device
returns 0 and the dev
->driver is set, we've found a
compatible pair.
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.