ahci: Remove unused devclass arguments to DRIVER_MODULE.

This commit is contained in:
John Baldwin 2022-04-19 13:39:53 -07:00
parent 23802d41fa
commit 07c15a9d35
4 changed files with 6 additions and 15 deletions

View File

@ -1056,7 +1056,6 @@ ahci_ch_resume(device_t dev)
return (0);
}
devclass_t ahcich_devclass;
static device_method_t ahcich_methods[] = {
DEVMETHOD(device_probe, ahci_ch_probe),
DEVMETHOD(device_attach, ahci_ch_attach),
@ -1070,7 +1069,7 @@ static driver_t ahcich_driver = {
ahcich_methods,
sizeof(struct ahci_channel)
};
DRIVER_MODULE(ahcich, ahci, ahcich_driver, ahcich_devclass, NULL, NULL);
DRIVER_MODULE(ahcich, ahci, ahcich_driver, NULL, NULL);
struct ahci_dc_cb_args {
bus_addr_t maddr;

View File

@ -417,8 +417,5 @@ static driver_t ahci_fsl_fdt_driver = {
sizeof(struct ahci_fsl_fdt_controller),
};
static devclass_t ahci_fsl_fdt_devclass;
DRIVER_MODULE(ahci_fsl, simplebus, ahci_fsl_fdt_driver, ahci_fsl_fdt_devclass,
NULL, NULL);
DRIVER_MODULE(ahci_fsl, ofwbus, ahci_fsl_fdt_driver, ahci_fsl_fdt_devclass,
NULL, NULL);
DRIVER_MODULE(ahci_fsl, simplebus, ahci_fsl_fdt_driver, NULL, NULL);
DRIVER_MODULE(ahci_fsl, ofwbus, ahci_fsl_fdt_driver, NULL, NULL);

View File

@ -172,7 +172,6 @@ ahci_gen_detach(device_t dev)
}
#ifdef FDT
static devclass_t ahci_gen_fdt_devclass;
static device_method_t ahci_fdt_methods[] = {
DEVMETHOD(device_probe, ahci_fdt_probe),
DEVMETHOD(device_attach, ahci_gen_attach),
@ -191,12 +190,10 @@ static driver_t ahci_fdt_driver = {
ahci_fdt_methods,
sizeof(struct ahci_controller)
};
DRIVER_MODULE(ahci_fdt, simplebus, ahci_fdt_driver, ahci_gen_fdt_devclass,
NULL, NULL);
DRIVER_MODULE(ahci_fdt, simplebus, ahci_fdt_driver, NULL, NULL);
#endif
#ifdef DEV_ACPI
static devclass_t ahci_gen_acpi_devclass;
static device_method_t ahci_acpi_methods[] = {
DEVMETHOD(device_probe, ahci_acpi_probe),
DEVMETHOD(device_attach, ahci_gen_attach),
@ -215,6 +212,5 @@ static driver_t ahci_acpi_driver = {
ahci_acpi_methods,
sizeof(struct ahci_controller)
};
DRIVER_MODULE(ahci_acpi, acpi, ahci_acpi_driver, ahci_gen_acpi_devclass,
NULL, NULL);
DRIVER_MODULE(ahci_acpi, acpi, ahci_acpi_driver, NULL, NULL);
#endif

View File

@ -274,7 +274,6 @@ ahci_em_resume(device_t dev)
return (0);
}
devclass_t ahciem_devclass;
static device_method_t ahciem_methods[] = {
DEVMETHOD(device_probe, ahci_em_probe),
DEVMETHOD(device_attach, ahci_em_attach),
@ -288,7 +287,7 @@ static driver_t ahciem_driver = {
ahciem_methods,
sizeof(struct ahci_enclosure)
};
DRIVER_MODULE(ahciem, ahci, ahciem_driver, ahciem_devclass, NULL, NULL);
DRIVER_MODULE(ahciem, ahci, ahciem_driver, NULL, NULL);
static void
ahci_em_setleds(device_t dev, int c)