virtio_p9fs: Support attaching to pci and mmio

Some implementations of the virtio 9p transport are implemented on
virtio_mmio, e.g. the Arm FVP. Use the correct macro so the driver
attaches when this is the case.

Reviewed by:	markj
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D49600
This commit is contained in:
Andrew Turner 2025-04-08 11:27:20 +01:00 committed by Franco Fichtner
parent 636b99757e
commit 2de03270e7

View file

@ -484,7 +484,7 @@ vt9p_modevent(module_t mod, int type, void *unused)
return (error);
}
DRIVER_MODULE(virtio_p9fs, virtio_pci, vt9p_drv, vt9p_modevent, 0);
VIRTIO_DRIVER_MODULE(virtio_p9fs, vt9p_drv, vt9p_modevent, NULL);
MODULE_VERSION(virtio_p9fs, 1);
MODULE_DEPEND(virtio_p9fs, virtio, 1, 1, 1);
MODULE_DEPEND(virtio_p9fs, p9fs, 1, 1, 1);