summaryrefslogtreecommitdiff
path: root/bsd-core/radeon_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-core/radeon_drv.c')
-rw-r--r--bsd-core/radeon_drv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-core/radeon_drv.c b/bsd-core/radeon_drv.c
index 144b1ade..f66bc795 100644
--- a/bsd-core/radeon_drv.c
+++ b/bsd-core/radeon_drv.c
@@ -111,7 +111,11 @@ static driver_t radeon_driver = {
};
extern devclass_t drm_devclass;
+#if __FreeBSD_version >= 700010
+DRIVER_MODULE(radeon, vgapci, radeon_driver, drm_devclass, 0, 0);
+#else
DRIVER_MODULE(radeon, pci, radeon_driver, drm_devclass, 0, 0);
+#endif
MODULE_DEPEND(radeon, drm, 1, 1, 1);
#elif defined(__NetBSD__) || defined(__OpenBSD__)