git: 83a273efcee2 - main - dev/amd*: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:22:29 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=83a273efcee27f01b642e807a00feccb095a84ff commit 83a273efcee27f01b642e807a00feccb095a84ff Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 19:22:00 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 19:22:00 +0000 dev/amd*: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/amdgpio/amdgpio.c | 3 +-- sys/dev/amdpm/amdpm.c | 4 +--- sys/dev/amdsbwd/amdsbwd.c | 3 +-- sys/dev/amdsmb/amdsmb.c | 4 +--- sys/dev/amdsmn/amdsmn.c | 3 +-- sys/dev/amdtemp/amdtemp.c | 3 +-- 6 files changed, 6 insertions(+), 14 deletions(-) diff --git a/sys/dev/amdgpio/amdgpio.c b/sys/dev/amdgpio/amdgpio.c index 0716f272c8f1..4a2eeb725982 100644 --- a/sys/dev/amdgpio/amdgpio.c +++ b/sys/dev/amdgpio/amdgpio.c @@ -469,8 +469,7 @@ static driver_t amdgpio_driver = { sizeof(struct amdgpio_softc), }; -static devclass_t amdgpio_devclass; -DRIVER_MODULE(amdgpio, acpi, amdgpio_driver, amdgpio_devclass, 0, 0); +DRIVER_MODULE(amdgpio, acpi, amdgpio_driver, 0, 0); MODULE_DEPEND(amdgpio, acpi, 1, 1, 1); MODULE_DEPEND(amdgpio, gpiobus, 1, 1, 1); MODULE_VERSION(amdgpio, 1); diff --git a/sys/dev/amdpm/amdpm.c b/sys/dev/amdpm/amdpm.c index 0231028be7fe..fa779fc543eb 100644 --- a/sys/dev/amdpm/amdpm.c +++ b/sys/dev/amdpm/amdpm.c @@ -634,8 +634,6 @@ error: return (error); } -static devclass_t amdpm_devclass; - static device_method_t amdpm_methods[] = { /* Device interface */ DEVMETHOD(device_probe, amdpm_probe), @@ -662,7 +660,7 @@ static driver_t amdpm_driver = { sizeof(struct amdpm_softc), }; -DRIVER_MODULE(amdpm, pci, amdpm_driver, amdpm_devclass, 0, 0); +DRIVER_MODULE(amdpm, pci, amdpm_driver, 0, 0); DRIVER_MODULE(smbus, amdpm, smbus_driver, 0, 0); MODULE_DEPEND(amdpm, pci, 1, 1, 1); diff --git a/sys/dev/amdsbwd/amdsbwd.c b/sys/dev/amdsbwd/amdsbwd.c index a7ab67f1a8b8..c24620e2b993 100644 --- a/sys/dev/amdsbwd/amdsbwd.c +++ b/sys/dev/amdsbwd/amdsbwd.c @@ -123,14 +123,13 @@ static device_method_t amdsbwd_methods[] = { DEVMETHOD_END }; -static devclass_t amdsbwd_devclass; static driver_t amdsbwd_driver = { "amdsbwd", amdsbwd_methods, sizeof(struct amdsbwd_softc) }; -DRIVER_MODULE(amdsbwd, isa, amdsbwd_driver, amdsbwd_devclass, NULL, NULL); +DRIVER_MODULE(amdsbwd, isa, amdsbwd_driver, NULL, NULL); static uint8_t pmio_read(struct resource *res, uint8_t reg) diff --git a/sys/dev/amdsmb/amdsmb.c b/sys/dev/amdsmb/amdsmb.c index e4de2e3609a6..8161691be252 100644 --- a/sys/dev/amdsmb/amdsmb.c +++ b/sys/dev/amdsmb/amdsmb.c @@ -566,15 +566,13 @@ static device_method_t amdsmb_methods[] = { { 0, 0 } }; -static devclass_t amdsmb_devclass; - static driver_t amdsmb_driver = { "amdsmb", amdsmb_methods, sizeof(struct amdsmb_softc), }; -DRIVER_MODULE(amdsmb, pci, amdsmb_driver, amdsmb_devclass, 0, 0); +DRIVER_MODULE(amdsmb, pci, amdsmb_driver, 0, 0); DRIVER_MODULE(smbus, amdsmb, smbus_driver, 0, 0); MODULE_DEPEND(amdsmb, pci, 1, 1, 1); diff --git a/sys/dev/amdsmn/amdsmn.c b/sys/dev/amdsmn/amdsmn.c index e83219b02705..d2d6f0392cd5 100644 --- a/sys/dev/amdsmn/amdsmn.c +++ b/sys/dev/amdsmn/amdsmn.c @@ -129,8 +129,7 @@ static driver_t amdsmn_driver = { sizeof(struct amdsmn_softc), }; -static devclass_t amdsmn_devclass; -DRIVER_MODULE(amdsmn, hostb, amdsmn_driver, amdsmn_devclass, NULL, NULL); +DRIVER_MODULE(amdsmn, hostb, amdsmn_driver, NULL, NULL); MODULE_VERSION(amdsmn, 1); MODULE_PNP_INFO("U16:vendor;U16:device", pci, amdsmn, amdsmn_ids, nitems(amdsmn_ids)); diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c index c8b40b0d68d4..33ee63d09e38 100644 --- a/sys/dev/amdtemp/amdtemp.c +++ b/sys/dev/amdtemp/amdtemp.c @@ -229,8 +229,7 @@ static driver_t amdtemp_driver = { sizeof(struct amdtemp_softc), }; -static devclass_t amdtemp_devclass; -DRIVER_MODULE(amdtemp, hostb, amdtemp_driver, amdtemp_devclass, NULL, NULL); +DRIVER_MODULE(amdtemp, hostb, amdtemp_driver, NULL, NULL); MODULE_VERSION(amdtemp, 1); MODULE_DEPEND(amdtemp, amdsmn, 1, 1, 1); MODULE_PNP_INFO("U16:vendor;U16:device", pci, amdtemp, amdtemp_products,