Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2018 23:35:23 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329539 - head/sys/dev/spibus
Message-ID:  <201802182335.w1INZNuM060833@repo.freebsd.org>

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



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