summaryrefslogtreecommitdiff
path: root/sys/dev/virtio/network
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-05-06 22:46:57 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-05-06 22:46:57 +0000
commit5c4c96d3ee38b45c87bff326ec4b0daf828c5e2a (patch)
tree86e122d51cf086f8b2ad95296d4b929c9676aea7 /sys/dev/virtio/network
parentd20c52b676e4fde4cfdd93ca8d76b9536c8d4609 (diff)
Diffstat (limited to 'sys/dev/virtio/network')
-rw-r--r--sys/dev/virtio/network/if_vtnet.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
index d86dec6a141d..264b185ba030 100644
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -361,10 +361,7 @@ static driver_t vtnet_driver = {
.methods = vtnet_methods,
.size = sizeof(struct vtnet_softc)
};
-static devclass_t vtnet_devclass;
-
-VIRTIO_DRIVER_MODULE(vtnet, vtnet_driver, vtnet_devclass,
- vtnet_modevent, 0);
+VIRTIO_DRIVER_MODULE(vtnet, vtnet_driver, vtnet_modevent, NULL);
MODULE_VERSION(vtnet, 1);
MODULE_DEPEND(vtnet, virtio, 1, 1, 1);
#ifdef DEV_NETMAP