amd64: Remove unused devclass arguments to DRIVER_MODULE.

This commit is contained in:
John Baldwin 2022-05-06 15:46:59 -07:00
parent 80d2b3de16
commit badcc74fe9
5 changed files with 5 additions and 14 deletions

View File

@ -286,6 +286,5 @@ static device_method_t nexus_acpi_methods[] = {
}; };
DEFINE_CLASS_1(nexus, nexus_acpi_driver, nexus_acpi_methods, 1, nexus_driver); DEFINE_CLASS_1(nexus, nexus_acpi_driver, nexus_acpi_methods, 1, nexus_driver);
static devclass_t nexus_devclass;
DRIVER_MODULE(nexus_acpi, root, nexus_acpi_driver, nexus_devclass, 0, 0); DRIVER_MODULE(nexus_acpi, root, nexus_acpi_driver, 0, 0);

View File

@ -1060,9 +1060,7 @@ static driver_t fpupnp_driver = {
1, /* no softc */ 1, /* no softc */
}; };
static devclass_t fpupnp_devclass; DRIVER_MODULE(fpupnp, acpi, fpupnp_driver, 0, 0);
DRIVER_MODULE(fpupnp, acpi, fpupnp_driver, fpupnp_devclass, 0, 0);
ISA_PNP_INFO(fpupnp_ids); ISA_PNP_INFO(fpupnp_ids);
#endif /* DEV_ISA */ #endif /* DEV_ISA */

View File

@ -178,8 +178,6 @@ ivhd_teardown_intr(device_t dev)
return (0); return (0);
} }
static devclass_t amdiommu_devclass;
/* This driver has to be loaded before ivhd */ /* This driver has to be loaded before ivhd */
DRIVER_MODULE(amdiommu, pci, amdiommu_driver, amdiommu_devclass, 0, 0); DRIVER_MODULE(amdiommu, pci, amdiommu_driver, 0, 0);
MODULE_DEPEND(amdiommu, pci, 1, 1, 1); MODULE_DEPEND(amdiommu, pci, 1, 1, 1);

View File

@ -754,12 +754,9 @@ static driver_t ivhd_driver = {
sizeof(struct amdvi_softc), sizeof(struct amdvi_softc),
}; };
static devclass_t ivhd_devclass;
/* /*
* Load this module at the end after PCI re-probing to configure interrupt. * Load this module at the end after PCI re-probing to configure interrupt.
*/ */
DRIVER_MODULE_ORDERED(ivhd, acpi, ivhd_driver, ivhd_devclass, 0, 0, DRIVER_MODULE_ORDERED(ivhd, acpi, ivhd_driver, 0, 0, SI_ORDER_ANY);
SI_ORDER_ANY);
MODULE_DEPEND(ivhd, acpi, 1, 1, 1); MODULE_DEPEND(ivhd, acpi, 1, 1, 1);
MODULE_DEPEND(ivhd, pci, 1, 1, 1); MODULE_DEPEND(ivhd, pci, 1, 1, 1);

View File

@ -195,9 +195,8 @@ static device_method_t ppt_methods[] = {
{0, 0} {0, 0}
}; };
static devclass_t ppt_devclass;
DEFINE_CLASS_0(ppt, ppt_driver, ppt_methods, sizeof(struct pptdev)); DEFINE_CLASS_0(ppt, ppt_driver, ppt_methods, sizeof(struct pptdev));
DRIVER_MODULE(ppt, pci, ppt_driver, ppt_devclass, NULL, NULL); DRIVER_MODULE(ppt, pci, ppt_driver, NULL, NULL);
static int static int
ppt_find(struct vm *vm, int bus, int slot, int func, struct pptdev **pptp) ppt_find(struct vm *vm, int bus, int slot, int func, struct pptdev **pptp)