Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Feb 2016 01:29:06 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295183 - head/sys/powerpc/mpc85xx
Message-ID:  <201602030129.u131T65R043032@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602030129.u131T65R043032>