From owner-svn-src-all@FreeBSD.ORG Tue Aug 5 16:31:03 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CAE16546 for ; Tue, 5 Aug 2014 16:31:03 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A154A24F1 for ; Tue, 5 Aug 2014 16:31:03 +0000 (UTC) Received: from ian (uid 1311) (envelope-from ian@FreeBSD.org) id 5c8b by svn.freebsd.org (DragonFly Mail Agent v0.9+); Tue, 05 Aug 2014 16:31:03 +0000 From: Ian Lepore Date: Tue, 5 Aug 2014 16:31:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269594 - in head/sys/dev: fdt ofw X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e106c7.5c8b.75d2360@svn.freebsd.org> X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 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: Tue, 05 Aug 2014 16:31:03 -0000 Author: ian Date: Tue Aug 5 16:31:03 2014 New Revision: 269594 URL: http://svnweb.freebsd.org/changeset/base/269594 Log: Set ofwbus and simplebus to attach during BUS_PASS_BUS. Modified: head/sys/dev/fdt/simplebus.c head/sys/dev/ofw/ofwbus.c Modified: head/sys/dev/fdt/simplebus.c ============================================================================== --- head/sys/dev/fdt/simplebus.c Tue Aug 5 16:30:13 2014 (r269593) +++ head/sys/dev/fdt/simplebus.c Tue Aug 5 16:31:03 2014 (r269594) @@ -121,8 +121,10 @@ static driver_t simplebus_driver = { sizeof(struct simplebus_softc) }; static devclass_t simplebus_devclass; -DRIVER_MODULE(simplebus, ofwbus, simplebus_driver, simplebus_devclass, 0, 0); -DRIVER_MODULE(simplebus, simplebus, simplebus_driver, simplebus_devclass, 0, 0); +EARLY_DRIVER_MODULE(simplebus, ofwbus, simplebus_driver, simplebus_devclass, + 0, 0, BUS_PASS_BUS); +EARLY_DRIVER_MODULE(simplebus, simplebus, simplebus_driver, simplebus_devclass, + 0, 0, BUS_PASS_BUS); static int simplebus_probe(device_t dev) Modified: head/sys/dev/ofw/ofwbus.c ============================================================================== --- head/sys/dev/ofw/ofwbus.c Tue Aug 5 16:30:13 2014 (r269593) +++ head/sys/dev/ofw/ofwbus.c Tue Aug 5 16:31:03 2014 (r269594) @@ -136,7 +136,8 @@ static driver_t ofwbus_driver = { sizeof(struct ofwbus_softc) }; static devclass_t ofwbus_devclass; -DRIVER_MODULE(ofwbus, nexus, ofwbus_driver, ofwbus_devclass, 0, 0); +EARLY_DRIVER_MODULE(ofwbus, nexus, ofwbus_driver, ofwbus_devclass, 0, 0, + BUS_PASS_BUS); MODULE_VERSION(ofwbus, 1); static const char *const ofwbus_excl_name[] = {