Date: Wed, 25 Mar 2009 17:02:05 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r190417 - head/sys/kern Message-ID: <200903251702.n2PH25o0082239@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Wed Mar 25 17:02:05 2009 New Revision: 190417 URL: http://svn.freebsd.org/changeset/base/190417 Log: When looking up the parent devclass of a new devclass, create the parent devclass if it doesn't already exist. Modified: head/sys/kern/subr_bus.c Modified: head/sys/kern/subr_bus.c ============================================================================== --- head/sys/kern/subr_bus.c Wed Mar 25 16:23:43 2009 (r190416) +++ head/sys/kern/subr_bus.c Wed Mar 25 17:02:05 2009 (r190417) @@ -820,7 +820,7 @@ devclass_find_internal(const char *class */ 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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903251702.n2PH25o0082239>