git: 36139be78590 - main - ce: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 21:47:27 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=36139be785904be090efad48ff53eefccd270953
commit 36139be785904be090efad48ff53eefccd270953
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-09 21:26:43 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-09 21:26:43 +0000
ce: Remove unused devclass arguments to DRIVER_MODULE.
---
sys/dev/ce/if_ce.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sys/dev/ce/if_ce.c b/sys/dev/ce/if_ce.c
index 4bd0070f8a56..2a92578011d0 100644
--- a/sys/dev/ce/if_ce.c
+++ b/sys/dev/ce/if_ce.c
@@ -127,8 +127,6 @@ static driver_t ce_driver = {
sizeof(bdrv_t),
};
-static devclass_t ce_devclass;
-
static void ce_receive (ce_chan_t *c, unsigned char *data, int len);
static void ce_transmit (ce_chan_t *c, void *attachment, int len);
static void ce_error (ce_chan_t *c, int data);
@@ -1808,7 +1806,7 @@ static struct ng_type typestruct = {
MODULE_DEPEND (ng_ce, netgraph, NG_ABI_VERSION, NG_ABI_VERSION, NG_ABI_VERSION);
#ifdef KLD_MODULE
-DRIVER_MODULE (cemod, pci, ce_driver, ce_devclass, ce_modevent, NULL);
+DRIVER_MODULE (cemod, pci, ce_driver, ce_modevent, NULL);
#else
-DRIVER_MODULE (ce, pci, ce_driver, ce_devclass, ce_modevent, NULL);
+DRIVER_MODULE (ce, pci, ce_driver, ce_modevent, NULL);
#endif