From 2401c73637beb1ac76f156166cec473e044fc578 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 25 Mar 2009 17:02:05 +0000 Subject: [PATCH] When looking up the parent devclass of a new devclass, create the parent devclass if it doesn't already exist. --- sys/kern/subr_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 70531efcba07..92a403841265 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -820,7 +820,7 @@ devclass_find_internal(const char *classname, const char *parentname, */ if (parentname && dc && !dc->parent && strcmp(classname, parentname) != 0) { - dc->parent = devclass_find_internal(parentname, NULL, FALSE); + dc->parent = devclass_find_internal(parentname, NULL, TRUE); dc->parent->flags |= DC_HAS_CHILDREN; }