We can actually remove devclass_find_driver.

This commit is contained in:
Warner Losh 2009-06-10 01:02:38 +00:00
parent 7adb51acc7
commit 72aee35323
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193874

View File

@ -1198,27 +1198,6 @@ devclass_find_driver_internal(devclass_t dc, const char *classname)
return (NULL);
}
/**
* @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
*/