From 1af8a68c46623055468e0cc22273bb13fec0ce0a Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Thu, 5 Aug 2004 07:20:24 +0000 Subject: [PATCH] Now that mem(4) is a kernel module, we need to add a dependency on it in drm(4) for mem_range_attr_set(). This fixes loading a DRM driver as a module. Reviewed by: anholt --- sys/dev/drm/drm_drv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/drm/drm_drv.h b/sys/dev/drm/drm_drv.h index 642cc7413668..1227296eb6ac 100644 --- a/sys/dev/drm/drm_drv.h +++ b/sys/dev/drm/drm_drv.h @@ -124,6 +124,7 @@ static void DRM(cleanup)(drm_device_t *dev); #if __REALLY_HAVE_AGP MODULE_DEPEND(DRIVER_NAME, agp, 1, 1, 1); #endif +MODULE_DEPEND(DRIVER_NAME, mem, 1, 1, 1); #endif /* __FreeBSD__ */ #ifdef __NetBSD__