svn commit: r295183 - head/sys/powerpc/mpc85xx

Justin Hibbits jhibbits at FreeBSD.org
Wed Feb 3 01:29:08 UTC 2016


Author: jhibbits
Date: Wed Feb  3 01:29:06 2016
New Revision: 295183
URL: https://svnweb.freebsd.org/changeset/base/295183

Log:
  Make lbc(4) the same driver pass as simplebus.
  
  Device trees mark lbc as compatible with simplebus.  Since simplebus is passed
  first, it attaches first.  When lbc's pass (default pass) comes, the bus is
  already attached to simplebus, so is skipped.
  
  Sponsored by:	Alex Perez/Inertial Computing

Modified:
  head/sys/powerpc/mpc85xx/lbc.c

Modified: head/sys/powerpc/mpc85xx/lbc.c
==============================================================================
--- head/sys/powerpc/mpc85xx/lbc.c	Wed Feb  3 01:22:02 2016	(r295182)
+++ head/sys/powerpc/mpc85xx/lbc.c	Wed Feb  3 01:29:06 2016	(r295183)
@@ -113,7 +113,8 @@ static driver_t lbc_driver = {
 
 devclass_t lbc_devclass;
 
-DRIVER_MODULE(lbc, ofwbus, lbc_driver, lbc_devclass, 0, 0);
+EARLY_DRIVER_MODULE(lbc, ofwbus, lbc_driver, lbc_devclass,
+    0, 0, BUS_PASS_BUS);
 
 /*
  * Calculate address mask used by OR(n) registers. Use memory region size to


More information about the svn-src-head mailing list