Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2016 15:37:44 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308767 - head/sys/dev/gpio
Message-ID:  <201611171537.uAHFbi3N081042@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Thu Nov 17 15:37:44 2016
New Revision: 308767
URL: https://svnweb.freebsd.org/changeset/base/308767

Log:
  Make gpiobus early driver at BUS_PAS_BUS.
  
  The gpiobus driver is attached explicitly and generally should be
  at the same pass as its parent. Making it use BUS_PAS_BUS ensures
  that it attaches immediately after parent adds it (assuming the
  parent itself attached at BUS_PAS_BUS and above).
  
  Submitted by:	kan
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/dev/gpio/gpiobus.c

Modified: head/sys/dev/gpio/gpiobus.c
==============================================================================
--- head/sys/dev/gpio/gpiobus.c	Thu Nov 17 15:25:26 2016	(r308766)
+++ head/sys/dev/gpio/gpiobus.c	Thu Nov 17 15:37:44 2016	(r308767)
@@ -855,5 +855,6 @@ driver_t gpiobus_driver = {
 
 devclass_t	gpiobus_devclass;
 
-DRIVER_MODULE(gpiobus, gpio, gpiobus_driver, gpiobus_devclass, 0, 0);
+EARLY_DRIVER_MODULE(gpiobus, gpio, gpiobus_driver, gpiobus_devclass, 0, 0,
+    BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
 MODULE_VERSION(gpiobus, 1);



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