Skip to content
Snippets Groups Projects
Commit 83d5518c authored by John Baldwin's avatar John Baldwin
Browse files

security/quantis-kmod: Remove unused DRIVER_MODULE devclass on recent main.

Reviewed by:	ale (maintainer)
Differential Revision:	https://reviews.freebsd.org/D35265
parent cc00e323
No related branches found
No related tags found
No related merge requests found
--- freebsd/quantis_pci_freebsd.c.orig 2022-04-26 15:35:51 UTC
--- freebsd/quantis_pci_freebsd.c.orig 2017-07-20 14:51:35 UTC
+++ freebsd/quantis_pci_freebsd.c
@@ -287,7 +287,6 @@ static int quantis_detach(device_t device, struct quan
@@ -147,8 +147,6 @@ static struct cdevsw quantis_cdevsw =
.d_name = "quantis",
};
-static devclass_t quantis_devclass;
-
/** Keep track of the numbers of card we manage for the corresponding
** IOCTL call. I guess this is already managed in some `device_t'
** structure.
@@ -200,7 +198,13 @@ static int quantis_load(struct module *module, int cmd
}
+#if __FreeBSD_version >= 1400058
+DRIVER_MODULE(quantis, pci, quantis_pci_driver, quantis_load, NULL);
+#else
+static devclass_t quantis_devclass;
+
DRIVER_MODULE(quantis, pci, quantis_pci_driver, quantis_devclass, quantis_load, 0);
+#endif
static int quantis_pci_probe(device_t dev)
@@ -287,7 +291,6 @@ static int quantis_allocate_resources(device_t device)
**/
static int quantis_allocate_resources(device_t device)
{
......@@ -8,7 +31,7 @@
struct quantis_pci_device *scp = DEVICE2SOFTC(device);
mtx_init(&scp->mutex, "Quantis Device Mutex", NULL, MTX_DEF);
@@ -301,7 +300,6 @@ static int quantis_allocate_resources(device_t device)
@@ -301,7 +304,6 @@ errexit:
return (0);
errexit:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment