git: a9424e0f0673 - main - netmap: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 17:36:43 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a9424e0f06732f03e525fe7ed379e83d5a562612 commit a9424e0f06732f03e525fe7ed379e83d5a562612 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-10 17:21:39 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-10 17:21:39 +0000 netmap: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/netmap/if_ptnet.c | 5 ++--- sys/dev/netmap/netmap_freebsd.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sys/dev/netmap/if_ptnet.c b/sys/dev/netmap/if_ptnet.c index 99d21c38f8ab..fa0ea1476a3c 100644 --- a/sys/dev/netmap/if_ptnet.c +++ b/sys/dev/netmap/if_ptnet.c @@ -249,9 +249,8 @@ static driver_t ptnet_driver = { }; /* We use (SI_ORDER_MIDDLE+2) here, see DEV_MODULE_ORDERED() invocation. */ -static devclass_t ptnet_devclass; -DRIVER_MODULE_ORDERED(ptnet, pci, ptnet_driver, ptnet_devclass, - NULL, NULL, SI_ORDER_MIDDLE + 2); +DRIVER_MODULE_ORDERED(ptnet, pci, ptnet_driver, NULL, NULL, + SI_ORDER_MIDDLE + 2); static int ptnet_probe(device_t dev) diff --git a/sys/dev/netmap/netmap_freebsd.c b/sys/dev/netmap/netmap_freebsd.c index de3fbaaffea6..383c733cc159 100644 --- a/sys/dev/netmap/netmap_freebsd.c +++ b/sys/dev/netmap/netmap_freebsd.c @@ -821,9 +821,8 @@ static driver_t ptn_memdev_driver = { /* We use (SI_ORDER_MIDDLE+1) here, see DEV_MODULE_ORDERED() invocation * below. */ -static devclass_t ptnetmap_devclass; -DRIVER_MODULE_ORDERED(ptn_memdev, pci, ptn_memdev_driver, ptnetmap_devclass, - NULL, NULL, SI_ORDER_MIDDLE + 1); +DRIVER_MODULE_ORDERED(ptn_memdev, pci, ptn_memdev_driver, NULL, NULL, + SI_ORDER_MIDDLE + 1); /* * Map host netmap memory through PCI-BAR in the guest OS,