We can actually remove devclass_find_driver.
This commit is contained in:
parent
7adb51acc7
commit
72aee35323
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user