From owner-svn-src-all@freebsd.org Sun Dec 13 08:23:47 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12AF0A3B3FE; Sun, 13 Dec 2015 08:23:47 +0000 (UTC) (envelope-from mmel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D54171868; Sun, 13 Dec 2015 08:23:46 +0000 (UTC) (envelope-from mmel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tBD8NjNa056621; Sun, 13 Dec 2015 08:23:45 GMT (envelope-from mmel@FreeBSD.org) Received: (from mmel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tBD8NjgY056620; Sun, 13 Dec 2015 08:23:45 GMT (envelope-from mmel@FreeBSD.org) Message-Id: <201512130823.tBD8NjgY056620@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mmel set sender to mmel@FreeBSD.org using -f From: Michal Meloun Date: Sun, 13 Dec 2015 08:23:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292157 - head/sys/dev/ofw X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2015 08:23:47 -0000 Author: mmel Date: Sun Dec 13 08:23:45 2015 New Revision: 292157 URL: https://svnweb.freebsd.org/changeset/base/292157 Log: OFW_IICBUS: Register ofw_iicbus node. The iicbus can be referenced from other nodes in DT. Approved by: kib (mentor) Modified: head/sys/dev/ofw/ofw_iicbus.c Modified: head/sys/dev/ofw/ofw_iicbus.c ============================================================================== --- head/sys/dev/ofw/ofw_iicbus.c Sun Dec 13 08:17:49 2015 (r292156) +++ head/sys/dev/ofw/ofw_iicbus.c Sun Dec 13 08:23:45 2015 (r292157) @@ -190,6 +190,8 @@ ofw_iicbus_attach(device_t dev) device_set_ivars(childdev, dinfo); } + /* Register bus */ + OF_device_register_xref(OF_xref_from_node(node), dev); return (bus_generic_attach(dev)); }