git: 83c0a9e839e2 - main - iavf/ice/ixl: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 23:25:32 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=83c0a9e839e2430617ae511cf80e150a8984d414 commit 83c0a9e839e2430617ae511cf80e150a8984d414 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-06 22:46:59 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:46:59 +0000 iavf/ice/ixl: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/iavf/if_iavf_iflib.c | 3 +-- sys/dev/ice/if_ice_iflib.c | 9 +-------- sys/dev/ixl/if_ixl.c | 3 +-- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/sys/dev/iavf/if_iavf_iflib.c b/sys/dev/iavf/if_iavf_iflib.c index 1f6c056bdf0a..848ad682ef0b 100644 --- a/sys/dev/iavf/if_iavf_iflib.c +++ b/sys/dev/iavf/if_iavf_iflib.c @@ -125,8 +125,7 @@ static driver_t iavf_driver = { "iavf", iavf_methods, sizeof(struct iavf_sc), }; -devclass_t iavf_devclass; -DRIVER_MODULE(iavf, pci, iavf_driver, iavf_devclass, 0, 0); +DRIVER_MODULE(iavf, pci, iavf_driver, 0, 0); MODULE_VERSION(iavf, 1); MODULE_DEPEND(iavf, pci, 1, 1, 1); diff --git a/sys/dev/ice/if_ice_iflib.c b/sys/dev/ice/if_ice_iflib.c index e0e852725b33..1b417a5aff82 100644 --- a/sys/dev/ice/if_ice_iflib.c +++ b/sys/dev/ice/if_ice_iflib.c @@ -269,14 +269,7 @@ static struct if_shared_ctx ice_sctx = { .isc_ntxd_default = {ICE_DEFAULT_DESC_COUNT}, }; -/** - * @var ice_devclass - * @brief ice driver device class - * - * device class used to setup the ice driver module kobject class. - */ -devclass_t ice_devclass; -DRIVER_MODULE(ice, pci, ice_driver, ice_devclass, ice_module_event_handler, 0); +DRIVER_MODULE(ice, pci, ice_driver, ice_module_event_handler, NULL); MODULE_VERSION(ice, 1); MODULE_DEPEND(ice, pci, 1, 1, 1); diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c index 7fa2318db300..975aaef0d5c6 100644 --- a/sys/dev/ixl/if_ixl.c +++ b/sys/dev/ixl/if_ixl.c @@ -155,8 +155,7 @@ static driver_t ixl_driver = { "ixl", ixl_methods, sizeof(struct ixl_pf), }; -devclass_t ixl_devclass; -DRIVER_MODULE(ixl, pci, ixl_driver, ixl_devclass, 0, 0); +DRIVER_MODULE(ixl, pci, ixl_driver, 0, 0); IFLIB_PNP_INFO(pci, ixl, ixl_vendor_info_array); MODULE_VERSION(ixl, 3);