git: e8d1145d10dc - main - cxgbe: Remove unused devclass arguments to *DRIVER_MODULE().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Apr 2022 17:45:45 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e8d1145d10dc7d79cda34dcafff3ed3b25654dbd commit e8d1145d10dc7d79cda34dcafff3ed3b25654dbd Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-19 17:44:08 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-19 17:44:08 +0000 cxgbe: Remove unused devclass arguments to *DRIVER_MODULE(). Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34964 --- sys/dev/cxgbe/t4_iov.c | 8 +++----- sys/dev/cxgbe/t4_main.c | 22 +++++++++------------- sys/dev/cxgbe/t4_vf.c | 15 ++++++--------- 3 files changed, 18 insertions(+), 27 deletions(-) diff --git a/sys/dev/cxgbe/t4_iov.c b/sys/dev/cxgbe/t4_iov.c index f943c41ecfb4..d3796d300947 100644 --- a/sys/dev/cxgbe/t4_iov.c +++ b/sys/dev/cxgbe/t4_iov.c @@ -425,13 +425,11 @@ static driver_t t6iov_driver = { sizeof(struct t4iov_softc) }; -static devclass_t t4iov_devclass, t5iov_devclass, t6iov_devclass; - -DRIVER_MODULE(t4iov, pci, t4iov_driver, t4iov_devclass, 0, 0); +DRIVER_MODULE(t4iov, pci, t4iov_driver, 0, 0); MODULE_VERSION(t4iov, 1); -DRIVER_MODULE(t5iov, pci, t5iov_driver, t5iov_devclass, 0, 0); +DRIVER_MODULE(t5iov, pci, t5iov_driver, 0, 0); MODULE_VERSION(t5iov, 1); -DRIVER_MODULE(t6iov, pci, t6iov_driver, t6iov_devclass, 0, 0); +DRIVER_MODULE(t6iov, pci, t6iov_driver, 0, 0); MODULE_VERSION(t6iov, 1); diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index fa9576308ee5..94dd70f01132 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -13198,45 +13198,41 @@ done_unload: return (rc); } -static devclass_t t4_devclass, t5_devclass, t6_devclass; -static devclass_t cxgbe_devclass, cxl_devclass, cc_devclass; -static devclass_t vcxgbe_devclass, vcxl_devclass, vcc_devclass; - -DRIVER_MODULE(t4nex, pci, t4_driver, t4_devclass, mod_event, 0); +DRIVER_MODULE(t4nex, pci, t4_driver, mod_event, 0); MODULE_VERSION(t4nex, 1); MODULE_DEPEND(t4nex, firmware, 1, 1, 1); #ifdef DEV_NETMAP MODULE_DEPEND(t4nex, netmap, 1, 1, 1); #endif /* DEV_NETMAP */ -DRIVER_MODULE(t5nex, pci, t5_driver, t5_devclass, mod_event, 0); +DRIVER_MODULE(t5nex, pci, t5_driver, mod_event, 0); MODULE_VERSION(t5nex, 1); MODULE_DEPEND(t5nex, firmware, 1, 1, 1); #ifdef DEV_NETMAP MODULE_DEPEND(t5nex, netmap, 1, 1, 1); #endif /* DEV_NETMAP */ -DRIVER_MODULE(t6nex, pci, t6_driver, t6_devclass, mod_event, 0); +DRIVER_MODULE(t6nex, pci, t6_driver, mod_event, 0); MODULE_VERSION(t6nex, 1); MODULE_DEPEND(t6nex, firmware, 1, 1, 1); #ifdef DEV_NETMAP MODULE_DEPEND(t6nex, netmap, 1, 1, 1); #endif /* DEV_NETMAP */ -DRIVER_MODULE(cxgbe, t4nex, cxgbe_driver, cxgbe_devclass, 0, 0); +DRIVER_MODULE(cxgbe, t4nex, cxgbe_driver, 0, 0); MODULE_VERSION(cxgbe, 1); -DRIVER_MODULE(cxl, t5nex, cxl_driver, cxl_devclass, 0, 0); +DRIVER_MODULE(cxl, t5nex, cxl_driver, 0, 0); MODULE_VERSION(cxl, 1); -DRIVER_MODULE(cc, t6nex, cc_driver, cc_devclass, 0, 0); +DRIVER_MODULE(cc, t6nex, cc_driver, 0, 0); MODULE_VERSION(cc, 1); -DRIVER_MODULE(vcxgbe, cxgbe, vcxgbe_driver, vcxgbe_devclass, 0, 0); +DRIVER_MODULE(vcxgbe, cxgbe, vcxgbe_driver, 0, 0); MODULE_VERSION(vcxgbe, 1); -DRIVER_MODULE(vcxl, cxl, vcxl_driver, vcxl_devclass, 0, 0); +DRIVER_MODULE(vcxl, cxl, vcxl_driver, 0, 0); MODULE_VERSION(vcxl, 1); -DRIVER_MODULE(vcc, cc, vcc_driver, vcc_devclass, 0, 0); +DRIVER_MODULE(vcc, cc, vcc_driver, 0, 0); MODULE_VERSION(vcc, 1); diff --git a/sys/dev/cxgbe/t4_vf.c b/sys/dev/cxgbe/t4_vf.c index 95b984f3e3be..ffc1e7e45e32 100644 --- a/sys/dev/cxgbe/t4_vf.c +++ b/sys/dev/cxgbe/t4_vf.c @@ -975,26 +975,23 @@ static driver_t ccv_driver = { sizeof(struct port_info) }; -static devclass_t t4vf_devclass, t5vf_devclass, t6vf_devclass; -static devclass_t cxgbev_devclass, cxlv_devclass, ccv_devclass; - -DRIVER_MODULE(t4vf, pci, t4vf_driver, t4vf_devclass, 0, 0); +DRIVER_MODULE(t4vf, pci, t4vf_driver, 0, 0); MODULE_VERSION(t4vf, 1); MODULE_DEPEND(t4vf, t4nex, 1, 1, 1); -DRIVER_MODULE(t5vf, pci, t5vf_driver, t5vf_devclass, 0, 0); +DRIVER_MODULE(t5vf, pci, t5vf_driver, 0, 0); MODULE_VERSION(t5vf, 1); MODULE_DEPEND(t5vf, t5nex, 1, 1, 1); -DRIVER_MODULE(t6vf, pci, t6vf_driver, t6vf_devclass, 0, 0); +DRIVER_MODULE(t6vf, pci, t6vf_driver, 0, 0); MODULE_VERSION(t6vf, 1); MODULE_DEPEND(t6vf, t6nex, 1, 1, 1); -DRIVER_MODULE(cxgbev, t4vf, cxgbev_driver, cxgbev_devclass, 0, 0); +DRIVER_MODULE(cxgbev, t4vf, cxgbev_driver, 0, 0); MODULE_VERSION(cxgbev, 1); -DRIVER_MODULE(cxlv, t5vf, cxlv_driver, cxlv_devclass, 0, 0); +DRIVER_MODULE(cxlv, t5vf, cxlv_driver, 0, 0); MODULE_VERSION(cxlv, 1); -DRIVER_MODULE(ccv, t6vf, ccv_driver, ccv_devclass, 0, 0); +DRIVER_MODULE(ccv, t6vf, ccv_driver, 0, 0); MODULE_VERSION(ccv, 1);