Author: ian
Date: Sun Feb 18 23:35:23 2018
New Revision: 329539
URL: https://svnweb.freebsd.org/changeset/base/329539

Log:
  Provide public declarations for ofw_spibus_driver and ofw_spibus_devclass
  so other drivers can refer to them in DRIVER_MODULE() decls.

Modified:
  head/sys/dev/spibus/ofw_spibus.c
  head/sys/dev/spibus/spibusvar.h

Modified: head/sys/dev/spibus/ofw_spibus.c
==============================================================================
--- head/sys/dev/spibus/ofw_spibus.c    Sun Feb 18 23:16:16 2018        
(r329538)
+++ head/sys/dev/spibus/ofw_spibus.c    Sun Feb 18 23:35:23 2018        
(r329539)
@@ -214,10 +214,10 @@ static device_method_t ofw_spibus_methods[] = {
        DEVMETHOD_END
 };
 
-static devclass_t ofwspibus_devclass;
+devclass_t ofw_spibus_devclass;
 
 DEFINE_CLASS_1(spibus, ofw_spibus_driver, ofw_spibus_methods,
     sizeof(struct spibus_softc), spibus_driver);
-DRIVER_MODULE(ofw_spibus, spi, ofw_spibus_driver, ofwspibus_devclass, 0, 0);
+DRIVER_MODULE(ofw_spibus, spi, ofw_spibus_driver, ofw_spibus_devclass, 0, 0);
 MODULE_VERSION(ofw_spibus, 1);
 MODULE_DEPEND(ofw_spibus, spibus, 1, 1, 1);

Modified: head/sys/dev/spibus/spibusvar.h
==============================================================================
--- head/sys/dev/spibus/spibusvar.h     Sun Feb 18 23:16:16 2018        
(r329538)
+++ head/sys/dev/spibus/spibusvar.h     Sun Feb 18 23:35:23 2018        
(r329539)
@@ -68,3 +68,5 @@ SPIBUS_ACCESSOR(clock,                CLOCK,          
uint32_t)
 
 extern driver_t spibus_driver;
 extern devclass_t spibus_devclass;
+extern driver_t ofw_spibus_driver;
+extern devclass_t ofw_spibus_devclass;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to