Author: ian
Date: Tue Aug  5 17:32:47 2014
New Revision: 269597
URL: http://svnweb.freebsd.org/changeset/base/269597

Log:
  Adjust ofwbus and simplebus to attach at BUS_PASS_ORDER_MIDDLE, so that
  a platform can attach some other bus first if necessary.

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 17:22:48 2014        
(r269596)
+++ head/sys/dev/fdt/simplebus.c        Tue Aug  5 17:32:47 2014        
(r269597)
@@ -124,7 +124,7 @@ static devclass_t simplebus_devclass;
 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);
+    0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
 
 static int
 simplebus_probe(device_t dev)

Modified: head/sys/dev/ofw/ofwbus.c
==============================================================================
--- head/sys/dev/ofw/ofwbus.c   Tue Aug  5 17:22:48 2014        (r269596)
+++ head/sys/dev/ofw/ofwbus.c   Tue Aug  5 17:32:47 2014        (r269597)
@@ -137,7 +137,7 @@ static driver_t ofwbus_driver = {
 };
 static devclass_t ofwbus_devclass;
 EARLY_DRIVER_MODULE(ofwbus, nexus, ofwbus_driver, ofwbus_devclass, 0, 0,
-    BUS_PASS_BUS);
+    BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
 MODULE_VERSION(ofwbus, 1);
 
 static const char *const ofwbus_excl_name[] = {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to