From owner-svn-src-head@FreeBSD.ORG Wed Mar 25 17:02:05 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDDA410656C5; Wed, 25 Mar 2009 17:02:05 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C8FDD8FC1B; Wed, 25 Mar 2009 17:02:05 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2PH252r082240; Wed, 25 Mar 2009 17:02:05 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2PH25o0082239; Wed, 25 Mar 2009 17:02:05 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <200903251702.n2PH25o0082239@svn.freebsd.org> From: John Baldwin Date: Wed, 25 Mar 2009 17:02:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r190417 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2009 17:02:08 -0000 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; }