git: e88935ab971e - main - smc: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 21:48:11 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e88935ab971e43525d5522e23065acbda645e14e commit e88935ab971e43525d5522e23065acbda645e14e Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 21:26:46 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 21:26:46 +0000 smc: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/smc/if_smc.c | 2 -- sys/dev/smc/if_smc_acpi.c | 4 +--- sys/dev/smc/if_smc_fdt.c | 4 +--- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/sys/dev/smc/if_smc.c b/sys/dev/smc/if_smc.c index ed1f766da00d..d1ae02356de9 100644 --- a/sys/dev/smc/if_smc.c +++ b/sys/dev/smc/if_smc.c @@ -90,8 +90,6 @@ __FBSDID("$FreeBSD$"); #define SMC_RX_PRIORITY 5 #define SMC_TX_PRIORITY 10 -devclass_t smc_devclass; - static const char *smc_chip_ids[16] = { NULL, NULL, NULL, /* 3 */ "SMSC LAN91C90 or LAN91C92", diff --git a/sys/dev/smc/if_smc_acpi.c b/sys/dev/smc/if_smc_acpi.c index 74f591493167..db6561bdb187 100644 --- a/sys/dev/smc/if_smc_acpi.c +++ b/sys/dev/smc/if_smc_acpi.c @@ -72,9 +72,7 @@ static device_method_t smc_acpi_methods[] = { DEFINE_CLASS_1(smc, smc_acpi_driver, smc_acpi_methods, sizeof(struct smc_softc), smc_driver); -extern devclass_t smc_devclass; - -DRIVER_MODULE(smc, acpi, smc_acpi_driver, smc_devclass, 0, 0); +DRIVER_MODULE(smc, acpi, smc_acpi_driver, 0, 0); MODULE_DEPEND(smc, acpi, 1, 1, 1); MODULE_DEPEND(smc, ether, 1, 1, 1); MODULE_DEPEND(smc, miibus, 1, 1, 1); diff --git a/sys/dev/smc/if_smc_fdt.c b/sys/dev/smc/if_smc_fdt.c index 2c63b9f94d49..fd6c1ca32de2 100644 --- a/sys/dev/smc/if_smc_fdt.c +++ b/sys/dev/smc/if_smc_fdt.c @@ -77,9 +77,7 @@ static device_method_t smc_fdt_methods[] = { DEFINE_CLASS_1(smc, smc_fdt_driver, smc_fdt_methods, sizeof(struct smc_softc), smc_driver); -extern devclass_t smc_devclass; - -DRIVER_MODULE(smc, simplebus, smc_fdt_driver, smc_devclass, 0, 0); +DRIVER_MODULE(smc, simplebus, smc_fdt_driver, 0, 0); MODULE_DEPEND(smc, fdt, 1, 1, 1); MODULE_DEPEND(smc, ether, 1, 1, 1); MODULE_DEPEND(smc, miibus, 1, 1, 1);