Call DEVICE_IDENIFY in bus_generic_driver_added to allow devices to

add nodes to the tree.  Also, default to bus_generic_driver_added for
the BUS_DRIVER_ADDED method.

This allows newbus busses to be kldload'd.

Reviewed by: dfr
This commit is contained in:
Warner Losh 1999-10-09 03:48:18 +00:00
parent 6bab6ffeb8
commit 6d4d0ac958
2 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,7 @@ METHOD void child_detached {
METHOD void driver_added {
device_t dev;
driver_t *driver;
}
} DEFAULT bus_generic_driver_added;
#
# For busses which use use drivers supporting DEVICE_IDENTIFY to

View File

@ -1924,6 +1924,7 @@ bus_generic_driver_added(device_t dev, driver_t *driver)
{
device_t child;
DEVICE_IDENTIFY(driver, dev);
for (child = TAILQ_FIRST(&dev->children);
child; child = TAILQ_NEXT(child, link))
if (child->state == DS_NOTPRESENT)