diff --git a/sys/dev/intel/pchtherm.c b/sys/dev/intel/pchtherm.c index b65cc9879e2..241545efefa 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 b11fa468c05..67653023438 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);