aboutsummaryrefslogtreecommitdiff
path: root/device/dev_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'device/dev_name.c')
-rw-r--r--device/dev_name.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/device/dev_name.c b/device/dev_name.c
index 13ff6dc9..66e6eafe 100644
--- a/device/dev_name.c
+++ b/device/dev_name.c
@@ -241,26 +241,3 @@ dev_set_indirection(const char *name, dev_ops_t ops, int unit)
}
}
}
-
-boolean_t dev_change_indirect(const char *iname, const char *dname, int unit)
-{
- struct dev_ops *dp;
- struct dev_indirect *di;
- boolean_t found = FALSE;
-
- dev_search(dp) {
- if (!strcmp(dp->d_name, dname)) {
- found = TRUE;
- break;
- }
- }
- if (!found) return FALSE;
- dev_indirect_search(di) {
- if (!strcmp(di->d_name, iname)) {
- di->d_ops = dp;
- di->d_unit = unit;
- return TRUE;
- }
- }
- return FALSE;
-}