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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bsd-core/radeon_drv.c b/bsd-core/radeon_drv.c
index 29f54cd9..78079b72 100644
--- a/bsd-core/radeon_drv.c
+++ b/bsd-core/radeon_drv.c
@@ -115,5 +115,10 @@ DRIVER_MODULE(radeon, pci, radeon_driver, drm_devclass, 0, 0);
MODULE_DEPEND(radeon, drm, 1, 1, 1);
#elif defined(__NetBSD__) || defined(__OpenBSD__)
+#ifdef _LKM
CFDRIVER_DECL(radeon, DV_TTY, NULL);
+#else
+CFATTACH_DECL(radeon, sizeof(drm_device_t), drm_probe, drm_attach, drm_detach,
+ drm_activate);
+#endif
#endif /* __FreeBSD__ */