-/**
- * bus_attach_device - add device to bus
- * @dev: device tried to attach to a driver
- *
- * - Try to attach to driver.
- */
-void bus_attach_device(struct device * dev)
-{
- struct bus_type * bus = dev->bus;
-
- if (bus) {
- device_attach(dev);
- klist_add_tail(&dev->knode_bus, &bus->klist_devices);
- }
-}
-