diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2022-05-09 19:22:02 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2022-05-09 19:22:02 +0000 |
| commit | 289b5607da2eace36026fc68a470040743fca9eb (patch) | |
| tree | e5dc760bd9d3efa753fada66489b909da5ea82d3 /sys/dev/intel | |
| parent | 8d1611432f425a97714543af30379f6ad9ed4b7c (diff) | |
Diffstat (limited to 'sys/dev/intel')
| -rw-r--r-- | sys/dev/intel/pchtherm.c | 5 | ||||
| -rw-r--r-- | 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); |
