git: c54f3323e540 - main - cxgb: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:22:43 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c54f3323e5400160538f5d516aacadb8e677d8bd commit c54f3323e5400160538f5d516aacadb8e677d8bd Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 19:22:01 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 19:22:01 +0000 cxgb: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/cxgb/cxgb_main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c index 5c0bdd569fab..e31050a2f946 100644 --- a/sys/dev/cxgb/cxgb_main.c +++ b/sys/dev/cxgb/cxgb_main.c @@ -172,9 +172,8 @@ static driver_t cxgb_controller_driver = { }; static int cxgbc_mod_event(module_t, int, void *); -static devclass_t cxgb_controller_devclass; -DRIVER_MODULE(cxgbc, pci, cxgb_controller_driver, cxgb_controller_devclass, - cxgbc_mod_event, 0); + +DRIVER_MODULE(cxgbc, pci, cxgb_controller_driver, cxgbc_mod_event, NULL); MODULE_PNP_INFO("U16:vendor;U16:device", pci, cxgbc, cxgb_identifiers, nitems(cxgb_identifiers) - 1); MODULE_VERSION(cxgbc, 1); @@ -214,8 +213,7 @@ static struct cdevsw cxgb_cdevsw = { .d_name = "cxgb", }; -static devclass_t cxgb_port_devclass; -DRIVER_MODULE(cxgb, cxgbc, cxgb_port_driver, cxgb_port_devclass, 0, 0); +DRIVER_MODULE(cxgb, cxgbc, cxgb_port_driver, 0, 0); MODULE_VERSION(cxgb, 1); DEBUGNET_DEFINE(cxgb);