diff options
-rw-r--r-- | sys/kern/subr_bus.c | 8 | ||||
-rw-r--r-- | sys/sys/bus.h | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index c856063..2ee25d3 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -999,7 +999,7 @@ devclass_driver_added(devclass_t dc, driver_t *driver) * @param dc the devclass to edit * @param driver the driver to register */ -int +static int devclass_add_driver(devclass_t dc, driver_t *driver, int pass) { driverlink_t dl; @@ -1052,7 +1052,7 @@ devclass_add_driver(devclass_t dc, driver_t *driver, int pass) * @param dc the devclass to edit * @param driver the driver to unregister */ -int +static int devclass_delete_driver(devclass_t busclass, driver_t *driver) { devclass_t dc = devclass_find(driver->name); @@ -1127,7 +1127,7 @@ devclass_delete_driver(devclass_t busclass, driver_t *driver) * @param dc the devclass to edit * @param driver the driver to unregister */ -int +static int devclass_quiesce_driver(devclass_t busclass, driver_t *driver) { devclass_t dc = devclass_find(driver->name); @@ -1208,7 +1208,7 @@ devclass_find_driver_internal(devclass_t dc, const char *classname) * @param dc the devclass to search * @param classname the driver name to search for */ -kobj_class_t +static kobj_class_t devclass_find_driver(devclass_t dc, const char *classname) { driverlink_t dl; diff --git a/sys/sys/bus.h b/sys/sys/bus.h index 354d659..2362041 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -435,11 +435,8 @@ void device_verbose(device_t dev); /* * Access functions for devclass. */ -int devclass_add_driver(devclass_t dc, kobj_class_t driver, int pass); -int devclass_delete_driver(devclass_t dc, kobj_class_t driver); devclass_t devclass_create(const char *classname); devclass_t devclass_find(const char *classname); -kobj_class_t devclass_find_driver(devclass_t dc, const char *classname); const char *devclass_get_name(devclass_t dc); device_t devclass_get_device(devclass_t dc, int unit); void *devclass_get_softc(devclass_t dc, int unit); @@ -452,7 +449,6 @@ void devclass_set_parent(devclass_t dc, devclass_t pdc); devclass_t devclass_get_parent(devclass_t dc); struct sysctl_ctx_list *devclass_get_sysctl_ctx(devclass_t dc); struct sysctl_oid *devclass_get_sysctl_tree(devclass_t dc); -int devclass_quiesce_driver(devclass_t dc, kobj_class_t driver); /* * Access functions for device resources. |