The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=289b5607da2eace36026fc68a470040743fca9eb

commit 289b5607da2eace36026fc68a470040743fca9eb
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-05-09 19:22:02 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2022-05-09 19:22:02 +0000

    pchtherm/intelspi: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/intel/pchtherm.c | 5 +++--
 sys/dev/intel/spi.c      | 3 +--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/dev/intel/pchtherm.c b/sys/dev/intel/pchtherm.c
index b65cc9879e26..241545efefa7 100644
--- a/sys/dev/intel/pchtherm.c
+++ b/sys/dev/intel/pchtherm.c
@@ -307,6 +307,7 @@ static int pchtherm_detach(device_t dev)
 
        return 0;
 }
+
 static device_method_t pchtherm_methods[] =
 {
        DEVMETHOD(device_probe, pchtherm_probe),
@@ -315,12 +316,12 @@ static device_method_t pchtherm_methods[] =
 
        DEVMETHOD_END
 };
+
 static driver_t pchtherm_driver = {
        "pchtherm",
        pchtherm_methods,
        sizeof(struct pchtherm_softc)
 };
 
-static devclass_t pchtherm_devclass;
-DRIVER_MODULE(pchtherm, pci, pchtherm_driver, pchtherm_devclass, 0, 0);
+DRIVER_MODULE(pchtherm, pci, pchtherm_driver, 0, 0);
 PCI_PNP_INFO(pchtherm_devices);
diff --git a/sys/dev/intel/spi.c b/sys/dev/intel/spi.c
index b11fa468c056..676530234382 100644
--- a/sys/dev/intel/spi.c
+++ b/sys/dev/intel/spi.c
@@ -528,7 +528,6 @@ static driver_t intelspi_driver = {
        sizeof(struct intelspi_softc),
 };
 
-static devclass_t intelspi_devclass;
-DRIVER_MODULE(intelspi, acpi, intelspi_driver, intelspi_devclass, 0, 0);
+DRIVER_MODULE(intelspi, acpi, intelspi_driver, 0, 0);
 MODULE_DEPEND(intelspi, acpi, 1, 1, 1);
 MODULE_DEPEND(intelspi, spibus, 1, 1, 1);

Reply via email to