diff options
author | imp <imp@FreeBSD.org> | 2009-06-10 01:02:38 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-06-10 01:02:38 +0000 |
commit | 9271db114894df1886478ff195a7846271a868b6 (patch) | |
tree | f69e3442b7e47fc21d26efbc31cef3aaf0932a2d /sys/kern/subr_bus.c | |
parent | 4bc21efa2cf6dfa3b7d21fcf51fb17554ef8597f (diff) | |
download | FreeBSD-src-9271db114894df1886478ff195a7846271a868b6.zip FreeBSD-src-9271db114894df1886478ff195a7846271a868b6.tar.gz |
We can actually remove devclass_find_driver.
Diffstat (limited to 'sys/kern/subr_bus.c')
-rw-r--r-- | sys/kern/subr_bus.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 2ee25d3..2964b8c 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -1199,27 +1199,6 @@ devclass_find_driver_internal(devclass_t dc, const char *classname) } /** - * @brief Search a devclass for a driver - * - * This function searches the devclass's list of drivers and returns - * the first driver whose name is @p classname or @c NULL if there is - * no driver of that name. - * - * @param dc the devclass to search - * @param classname the driver name to search for - */ -static kobj_class_t -devclass_find_driver(devclass_t dc, const char *classname) -{ - driverlink_t dl; - - dl = devclass_find_driver_internal(dc, classname); - if (dl) - return (dl->driver); - return (NULL); -} - -/** * @brief Return the name of the devclass */ const char * |