git: 539bc9a23201 - stable/15 - aq(4): Remove unused DRIVER_MODULE devclass
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Jul 2026 16:01:19 UTC
The branch stable/15 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=539bc9a232014435a2a54569ca37973a3f28e201
commit 539bc9a232014435a2a54569ca37973a3f28e201
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-11-13 03:23:27 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-07-24 16:00:18 +0000
aq(4): Remove unused DRIVER_MODULE devclass
(cherry picked from commit 2b587c0c8a933cd110ae579366644a280c509b7f)
---
sys/dev/aq/aq_main.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys/dev/aq/aq_main.c b/sys/dev/aq/aq_main.c
index 7345c7cc2d03..5712e347cff8 100644
--- a/sys/dev/aq/aq_main.c
+++ b/sys/dev/aq/aq_main.c
@@ -196,8 +196,12 @@ static driver_t aq_driver = {
"aq", aq_methods, sizeof(struct aq_dev),
};
+#if __FreeBSD_version >= 1400058
+DRIVER_MODULE(atlantic, pci, aq_driver, 0, 0);
+#else
static devclass_t aq_devclass;
DRIVER_MODULE(atlantic, pci, aq_driver, aq_devclass, 0, 0);
+#endif
MODULE_DEPEND(atlantic, pci, 1, 1, 1);
MODULE_DEPEND(atlantic, ether, 1, 1, 1);