git: 5a2ae6d050b6 - main - aac: Remove unused devclass argument to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:42:46 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5a2ae6d050b6cab6fa9e9e3a40abfeac2a34f26d commit 5a2ae6d050b6cab6fa9e9e3a40abfeac2a34f26d Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-19 18:24:47 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:39:27 +0000 aac: Remove unused devclass argument to DRIVER_MODULE. --- sys/dev/aac/aac_cam.c | 4 +--- sys/dev/aac/aac_disk.c | 4 +--- sys/dev/aac/aac_pci.c | 7 ++----- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/sys/dev/aac/aac_cam.c b/sys/dev/aac/aac_cam.c index 4de1ab9a3164..905fdad7545e 100644 --- a/sys/dev/aac/aac_cam.c +++ b/sys/dev/aac/aac_cam.c @@ -88,8 +88,6 @@ static u_int32_t aac_cam_reset_bus(struct cam_sim *, union ccb *); static u_int32_t aac_cam_abort_ccb(struct cam_sim *, union ccb *); static u_int32_t aac_cam_term_io(struct cam_sim *, union ccb *); -static devclass_t aac_pass_devclass; - static device_method_t aac_pass_methods[] = { DEVMETHOD(device_probe, aac_cam_probe), DEVMETHOD(device_attach, aac_cam_attach), @@ -103,7 +101,7 @@ static driver_t aac_pass_driver = { sizeof(struct aac_cam) }; -DRIVER_MODULE(aacp, aac, aac_pass_driver, aac_pass_devclass, NULL, NULL); +DRIVER_MODULE(aacp, aac, aac_pass_driver, NULL, NULL); MODULE_DEPEND(aacp, cam, 1, 1, 1); static MALLOC_DEFINE(M_AACCAM, "aaccam", "AAC CAM info"); diff --git a/sys/dev/aac/aac_disk.c b/sys/dev/aac/aac_disk.c index 5eeb802b103d..9066c18138c2 100644 --- a/sys/dev/aac/aac_disk.c +++ b/sys/dev/aac/aac_disk.c @@ -69,8 +69,6 @@ static disk_close_t aac_disk_close; static disk_strategy_t aac_disk_strategy; static dumper_t aac_disk_dump; -static devclass_t aac_disk_devclass; - static device_method_t aac_disk_methods[] = { DEVMETHOD(device_probe, aac_disk_probe), DEVMETHOD(device_attach, aac_disk_attach), @@ -84,7 +82,7 @@ static driver_t aac_disk_driver = { sizeof(struct aac_disk) }; -DRIVER_MODULE(aacd, aac, aac_disk_driver, aac_disk_devclass, NULL, NULL); +DRIVER_MODULE(aacd, aac, aac_disk_driver, NULL, NULL); /* * Handle open from generic layer. diff --git a/sys/dev/aac/aac_pci.c b/sys/dev/aac/aac_pci.c index 084a03c8a83d..da94b4372a69 100644 --- a/sys/dev/aac/aac_pci.c +++ b/sys/dev/aac/aac_pci.c @@ -83,9 +83,7 @@ static driver_t aac_pci_driver = { sizeof(struct aac_softc) }; -static devclass_t aac_devclass; - -DRIVER_MODULE(aac, pci, aac_pci_driver, aac_devclass, NULL, NULL); +DRIVER_MODULE(aac, pci, aac_pci_driver, NULL, NULL); MODULE_DEPEND(aac, pci, 1, 1, 1); static const struct aac_ident @@ -492,8 +490,7 @@ static driver_t aacch_driver = { 1 /* no softc */ }; -static devclass_t aacch_devclass; -DRIVER_MODULE(aacch, pci, aacch_driver, aacch_devclass, NULL, NULL); +DRIVER_MODULE(aacch, pci, aacch_driver, NULL, NULL); MODULE_PNP_INFO("U16:vendor;U16:device;", pci, aacch, aac_identifiers, nitems(aac_identifiers) - 1);