git: b69ec7a6bc82 - main - aacraid: Remove unused devclass argument to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:42:47 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b69ec7a6bc82816431f1c071f899b59249abce32 commit b69ec7a6bc82816431f1c071f899b59249abce32 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-19 18:25:45 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:39:28 +0000 aacraid: Remove unused devclass argument to DRIVER_MODULE. --- sys/dev/aacraid/aacraid_cam.c | 4 +--- sys/dev/aacraid/aacraid_pci.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/aacraid/aacraid_cam.c b/sys/dev/aacraid/aacraid_cam.c index a44833863891..de5687f0c25d 100644 --- a/sys/dev/aacraid/aacraid_cam.c +++ b/sys/dev/aacraid/aacraid_cam.c @@ -120,8 +120,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 aacraid_pass_devclass; - static device_method_t aacraid_pass_methods[] = { DEVMETHOD(device_probe, aac_cam_probe), DEVMETHOD(device_attach, aac_cam_attach), @@ -135,7 +133,7 @@ static driver_t aacraid_pass_driver = { sizeof(struct aac_cam) }; -DRIVER_MODULE(aacraidp, aacraid, aacraid_pass_driver, aacraid_pass_devclass, 0, 0); +DRIVER_MODULE(aacraidp, aacraid, aacraid_pass_driver, 0, 0); MODULE_DEPEND(aacraidp, cam, 1, 1, 1); MALLOC_DEFINE(M_AACRAIDCAM, "aacraidcam", "AACRAID CAM info"); diff --git a/sys/dev/aacraid/aacraid_pci.c b/sys/dev/aacraid/aacraid_pci.c index f445a073b6d5..2f86da89f0d6 100644 --- a/sys/dev/aacraid/aacraid_pci.c +++ b/sys/dev/aacraid/aacraid_pci.c @@ -83,8 +83,6 @@ static driver_t aacraid_pci_driver = { sizeof(struct aac_softc) }; -static devclass_t aacraid_devclass; - struct aac_ident { u_int16_t vendor; @@ -104,7 +102,7 @@ struct aac_ident {0, 0, 0, 0, 0, 0, 0} }; -DRIVER_MODULE(aacraid, pci, aacraid_pci_driver, aacraid_devclass, 0, 0); +DRIVER_MODULE(aacraid, pci, aacraid_pci_driver, 0, 0); MODULE_PNP_INFO("U16:vendor;U16:device", pci, aacraid, aacraid_family_identifiers, nitems(aacraid_family_identifiers) - 1);