diff options
author | imp <imp@FreeBSD.org> | 1999-10-09 03:48:18 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-10-09 03:48:18 +0000 |
commit | 117aa238f6bd0423bf34de7f62b6410ac1f8d6a7 (patch) | |
tree | a241f16b6d8e20225385779068f00525a3049669 /sys | |
parent | 5f8b8c74e78c3ccfeed0de810e18bbba033afb0f (diff) | |
download | FreeBSD-src-117aa238f6bd0423bf34de7f62b6410ac1f8d6a7.zip FreeBSD-src-117aa238f6bd0423bf34de7f62b6410ac1f8d6a7.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/bus_if.m | 2 | ||||
-rw-r--r-- | sys/kern/subr_bus.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m index d701283..4ead264 100644 --- a/sys/kern/bus_if.m +++ b/sys/kern/bus_if.m @@ -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 diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 45eb393..24de791 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -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) |